Having passed through the college of Hirschberg, Silesia (modern Jelenia Góra), he volunteered for service in the Napoleonic campaign of 1813–14, and on his return attended the lectures at Breslau University.