 At the age of twelve he was sent to the Naval Academy in Copenhagen, where he was a mediocre student who chafed under and rebelled against the harsh discipline.He became a cadet in 1795 sekondløjtnant in 1800.At seventeen he commanded a floating battery, "Flaadebatteri Nr.