 After schooling in his birth-town he went to a military academy in 1823 and graduates with honours in 1830.His career was going very steeply, starting from the rank of ensign, he was promoted to the rank of colonel in the summer of 1848.He commanded the 37th infantry regiment of Lviv, that consisted mainly of Hungarians.