On 17 August 1945, after the news of Allied victory over Japan reached Indonesia, Sukarno proclaimed Indonesian independence. This touched off the Indonesian National Revolution against the forces of the British and Dutch. In this war, Pramoedya joined a paramilitary group in Karawang, Kranji (West Java) and eventually was stationed in Jakarta. During this time he wrote short stories and books, as well as propaganda for the Nationalist cause. He was eventually imprisoned by the Dutch in Jakarta in 1947 and remained there until 1949, the year the Netherlands recognised Indonesian independence. While imprisoned in Bukit Duri from 1947 to 1949 for his role in the Indonesian Revolution, he wrote his first major novels "The Fugitive" and "Guerilla Family" with financial support from the Opbouw-Pembangoenan foundation, which also published the books.