The Java War or Diponegoro War was fought in central
Java from 1825 to 1830, between the colonial
Dutch Empire and native Javanese rebels. It started as a
rebellion led by Prince
Diponegoro, a leading member of the Javanese aristocracy who had previously cooperated with the Dutch.
The rebel forces were held up by a siege at
Yogyakarta, preventing them from gaining a quick victory. This allowed the Dutch to raise and ship in new troops. The rebels adopted
guerilla tactics and held out against Dutch forces for several years.
The war ended in Dutch victory when Diponegoro was invited to a peace conference, then betrayed and captured. Prompted by the cost of the war, the Dutch colonial authorities implemented major reforms throughout the
Dutch East Indies to ensure the colonies were profitable.