 In 1898 he joined the Imperial Russian Army and served in Kaunas.From 1900 until 1902 he studied at the Vilnius War School.From November 1904 until July 1905 he participated in the Russo–Japanese War and was seriously wounded in the arm.