 He received a military education at the Cavalry Cadet School ("Kavaleriets underoffiserskole") in Trondheim.He emigrated to China in 1886, and first started working with the Chinese Maritime Customs Service.He enlisted in the Chinese Army during the First Sino-Japanese War (1894–95).