He passed the civil service exam at the age of 18, one of the youngest persons to ever pass this exam, and became a junior officer in 1882. In the following year, he was sent to Japan where he studied both at the Keio Gijuku (the forerunner of the Keio University) and the Toyama Army Academy.