 For seven years he served in the military of the Prince of Brunswick-Lüneburg.On 1 July 1803, he accepted a commission as a captain in the Nassau-Weilburg military.At that time, the army of the principality consisted of two companies.