From 1827 Jan studied medicine at the University of Warsaw. During the November 1830–31 Uprising he served as a medic with the Polish forces, in the 5th Mounted Rifles, and won the order of Virtuti Militari.