Refers to an institution that trains officers for the armed forces. Often used in historical contexts (e.g., Imperial Japanese Army/Navy academies) or for modern equivalents.
He graduated from the military academy and became an ensign in the navy.
Before the war, Japan had the Army Academy and the Naval Academy.