Before the formation of the Indonesian Republic, the military authority in the Dutch East Indies was held by the Royal Dutch East Indies Army (KNIL) and naval forces of the Royal Netherlands Navy (KM). Although both the KNIL and KM were not directly responsible for the formation of the future Indonesian armed forces, and mainly took the role of foe during Indonesian National Revolution in 1945 to 1949, the KNIL had also provided military training and infrastructure for some of the future TNI officers and other ranks. There were military training centers, military schools and academies in the Dutch East Indies. Next to Dutch volunteers and European mercenaries, the KNIL also recruited indigenous, especially Ambonese, Kai Islanders, Timorese, and Minahasan people. In 1940, with the Netherlands under German occupation and the Japanese pressing for access to Dutch East Indies oil supplies, the Dutch had opened up the KNIL to large intakes of previously excluded Javanese. Some of the indigenous soldiers that had enjoyed Dutch KNIL military academy education would later become important TNI officers, like for example: Soeharto and Nasution.