# Java War

The Java War (Javanese: ꦥꦼꦫꦁꦗꦮ; Dutch: De Java-oorlog; Indonesian: Perang Jawa), known in Indonesia as the Diponegoro War (Javanese: ꦥꦼꦫꦁꦢꦶꦥꦤꦼꦒꦫ; Indonesian: Perang Diponegoro), was fought in central and eastern Java from 1825 to 1830, between native Javanese rebels headed by Prince Diponegoro and the colonial Dutch Empire supported by Javanese princely states. It is considered a watershed moment in Javanese history, culture, and society.
During the early nineteenth century, declining Dutch power along with increased centralization of colonial authorities by brief French and British controls had upended the political order established after the 1755 Treaty of Giyanti, at the expense of the native Javanese princely states. After the deaths of Sultans of Yogyakarta Hamengkubuwana III and IV, along with the return of Dutch presence, Hamengkubuwana III's eldest son Diponegoro became estranged with Yogyakarta's regency of Hamengkubuwana V and with the colonial government. With a millenarian movement emerging and claimed visions of a holy war, Diponegoro would launch his rebellion following tensions caused by a government road project in July 1825.
Shortly after the outbreak of the revolt, rebel forces laid siege to Yogyakarta, which was lifted following the arrival of a large Dutch relief force under H. M. de Kock. Diponegoro and his forces moved north towards Surakarta, defeating Dutch forces in a series of engagements throughout mid-1826 before being defeated west of the city. Other leaders affiliated with the rebellion also took up arms in Java's north coast and in East Java. The war transitioned into a guerilla war, with Dutch forces failing to stamp down on guerilla activity due to Diponegoro's popular support and Dutch manpower shortages.
By 1827, Dutch forces began employing a strategy of field fortifications (Bentengsteelsel), gradually confining Diponegoro's ability to maneuver and control territory. The war turned against Diponegoro, and his territorial control began to shrink as rebel forces became confined to the west of Yogyakarta. Further rebel setbacks in 1828 and 1829 saw their remaining armies depleted, with many key commanders surrendering or killed in action. Following a defeat in late 1829, Diponegoro led just a small group of guerillas. In an attempt at negotiations, Diponegoro was captured while meeting personally with de Kock in Magelang, and he was exiled to Sulawesi where he died in 1855.
The war had disastrous consequences in Java, marking the last significant armed resistance to Dutch rule until the Indonesian National Revolution over 100 years later. The princely states lost much of their remaining powers and territories, giving the Dutch uncontested rule over the island. At least 200,000 Javanese civilians were killed by violence or resulting disease and starvation, with Dutch military losses at 15,000 dead. Despite heavy costs of waging the war for the Dutch, the implementation of the Cultivation System in its immediate aftermath generated enormous revenues for the colonial government.

## Background

The 1755 Treaty of Giyanti divided the Mataram Sultanate in Java into Vorstenlanden (princely states): the Sultanate of Yogyakarta and the Sunanate of Surakarta, and later Mangkunegaran (1757). It brought a period of peace after the Javanese Wars of Succession, and allowed for major population growth in Java. Due to Dutch relative weakness in the late eighteenth century, the princely states possessed de facto sovereignty. The Fourth Anglo-Dutch War, the French Revolutionary and Napoleonic Wars, and the Dutch East India Company's bankruptcy in 1799 further weakened the Dutch position, with Dutch colonial authorities in Batavia requesting assistance from the princely states to defend Dutch territories in Java.
Under Napoleonic Netherlands, Herman Willem Daendels became Governor-General of the Dutch East Indies. Daendels aimed to weaken the princely states and prepare defences against a British invasion. Daendels harshly enforced colonial authority, boosting anti-Dutch sentiment in the Yogyakarta court and causing an abortive armed revolt by Yogyakarta bupati Rongga Prawiradirja [id] in 1810. The following year, Daendels was replaced, and British forces seized Java the same year. Tensions remained between Yogyakarta and British administrators, and British forces sacked Yogyakarta on 20 June 1812 [id], deposing Sultan Hamengkubuwana II in favor of his son Hamengkubuwana III. During their four-year control, the British split off part of Yogyakarta to form the Pakualaman, introduced a cash-based land tax which caused hardship to peasants, and forced the princely states to limit their military and cede territory.

### Diponegoro

Prince Diponegoro (born 1785) was the eldest son of Hamengkubuwana III. Through his mother, he claimed an ancestry from the Wali Songo, early apostles of Islam in Java. In 1805, he made a pilgrimage to the southern coast of Java. He wrote that he received visions there from Sunan Kalijaga and Ratu Kidul. He also wrote of warnings of the destruction of Yogyakarta and ruin for Java. Shortly prior to the British sack of Yogyakarta, he was offered the position of crown prince under his father, but he refused the offer, passing the position on to his child younger brother. Likely, he had been offered the position due to the aid he provided to the British. Hamengkubuwana III would die in 1814, and with his successor still being a boy, a regency was installed with Paku Alam I as regent.
Following Dutch return in 1816, Diponegoro's view of the Dutch and the Sultanate began deteriorating due to tax collection disputes and the arrest of a well-known religious leader. He also opposed the introduction of a land rent system in the late 1810s. A millenarian movement began to emerge in the Javanese countryside, fueled by a 1821 cholera epidemic and an eruption of Mount Merapi in 1822. A minor uprising by Diponegoro's great-uncle was suppressed in 1822. Hamengkubuwana IV died suddenly in December 1822, and with the new Sultan Hamengkubuwana V being two years old, Diponegoro was appointed one of his guardians. His relationship with other guardians was poor. In 1823, Dutch official A. H. Smissaert was appointed Resident in Yogyakarta. Smissaert alienated the aristocracy by offering to represent the young Sultan in a royal ceremony, and angered them further by demanding heavy indemnities after abolishing the land rent. Diponegoro was appointed to negotiate indemnities, but negotiations went poorly, and by 1824 Diponegoro refused to be involved.

## Outbreak

Political moves from other guardians of Hamengkubuwana V in 1824 resulted in the expulsion of several of Diponegoro's allies from court. Diponegoro also experienced humiliation from Smissaert and his officials. In early 1825, Dutch authorities annexed some territory from the Sultanate as a lease, without consulting Diponegoro in his capacity as the Sultan's guardian. During this period, Diponegoro claimed to have experienced a series of visions urging him to engage in a holy war. By late 1824, he began meeting with other Yogyakartan officials to plan a rebellion, prepared armaments and supplies, and contacting armed bandit groups. On 17 June 1825, Smissaert ordered a road near Yogya to be repaired, which happened to pass by Diponegoro's estate of Tegalreja. Occasional fights broke out between the road workers and Diponegoro's men, and by July, a large number of Diponegoro's supporters began gathering at Tegalreja for military action. On 20 July, a detachment of Dutch and Yogyakartan troops was sent to Tegalreja in order to arrest Diponegoro, and after a skirmish Diponegoro retreated with his men to Selarong Cave [id]. Diponegoro declared his rebellion on 21 July 1825.

## Forces
### Dutch

Upon receiving news of Diponegoro's uprising, Dutch forces in the region quickly moved to Yogyakarta. Some of the Dutch forces in the archipelago was engaged in an expedition in South Sulawesi, and they were recalled to Java. Overall Dutch military command in the Indies, under Hendrik Merkus de Kock, had 12,500 men, of which half were native Indonesian recruits whose loyalties were doubted by the Dutch. He would later receive additional troops – 3,154 European soldiers from the Netherlands and over 10,000 native auxillaries recruited during the war. De Kock's Javanese auxillaries were equipped similarly with Diponegoro's men, and had similar issues on loyalty to the Dutch cause.
The Dutch also made heavy use of soldiers from elsewhere in the archipelago. In 1828, for instance, while auxillaries from Java and nearby Madura numbered just over 5,000, auxillaries were also recruited from North Sulawesi and Gorontalo (~1,300 men), Buton (700 men), and the Maluku Islands (850 men). Balinese kingdoms also provided 1,000 soldiers as mercenaries to the Dutch.
Regular Dutch troops were armed with flintlock muskets, and these were also captured and used by the rebels.

### Princely states

The leadership of both Yogyakarta and Surakarta were split: British historian Peter Carey listed fifteen princes of the Yogyakartan royal family which sided with Diponegoro with a similar number remaining loyal to the Sultan, while Dutch records described the Surakarta Sunan Pakubuwono VI as "ambiguous" with a court divided between Dutch and Diponegoro supporters. On the other hand, the Mangkunegaran under Mangkunegara II took a more active pro-Dutch stance in the war, with the Mangkunegaran Legion campaigning independently against rebels in Surakartan and Yogyakartan territory until its defeat in 1826. He would later be given a Military Order of William award for his role in the war. The Pakualaman under Paku Alam I similarly remained loyal to the Dutch.
During British rule, the Sultanate of Yogyakarta alone was able to raise around 10,000 soldiers on a short notice. The cessions of land in 1812 had weakened the states, however. Throughout the war itself, the raising of troops by the princely states was limited, and were primarily small units policing secured territories. The Mangkunegaran Legion offered more troops, but due to lack of armaments, they were not raised. Dutch commanders throughout the war complained of the performance of troops provided by the Sunanate. Out of around 9,000 native auxillary troops recorded by the Dutch in 1828, about 2,500 were part of the Mangkunegaran Legion.

### Rebels

Diponegoro's forces quickly gathered at Selarong, with the Dutch reporting that "no fewer than seventy" members of the royal family joining him with their armed retinues. The men had limited numbers of firearms, being primarily equipped with Javanese traditional weapons such as bamboo spears. However, Diponegoro's men would also employ captured Dutch firearms and artillery. The rebels followed the organizational structure of the janissary units of the Ottoman Empire. Diponegoro subdivided his forces to sixteen commanders of noble origin, covering their own areas with a nominal force and appanage of 1,000 men and 10,000 households each, plus six units of royal guards. Diponegoro himself had a personal bodyguard of 300 to 400 cavalrymen and a similar number of armed men from a priestly order.
Overall military command was not held by Diponegoro, instead, it was given to Sentot Prawirodirdjo, son of the late rebel Rongga Prawiradirdja. Other senior rebel leaders included Kyai Maja, Diponegoro's spiritual adviser, and Diponegoro's uncle Prince Jayakusuma. The army was initially financed through contributions from Javanese aristocrats siding with Diponegoro. Many villages also sided with Diponegoro's forces, and as these had been fortified prior to the war to prevent bandit raids, they became useful strongpoints for the rebellion. They also took control of abandoned Mataram forts.
During the guerilla war, rebels favored hiding in grassy areas near roads before using snipers to ambush Dutch formations, with cavalry units camouflaged by bamboo fences and local villagers armed with farming implements joining the fight to cut off Dutch lines of retreat. The villagers would also construct roadblocks from felled trees or sharpened bamboo stakes. Dutch authorities suspected British or American smugglers with selling firearms to Diponegoro. Rebels manufactured their own ammunition and gunpowder, while also receiving supplies from smugglers.

## Course of the war
### Beginnings

Diponegoro's forces in Selarong received an early morale boost by a successful ambush and destruction of a Dutch column on its way to assembling in Yogyakarta, which also allowed the rebels to capture Dutch weapons. De Kock was appointed commissioner to the princely states on 26 July, giving him authority over military operations and civil affairs in the region. By 28 July, Diponegoro's forces had moved out of Selarong, and laid siege to Yogyakarta. As Dutch forces sent reinforcements from Semarang in an attempt to relieve the siege, further uprisings aligned with Diponegoro broke out in Dutch-controlled territory recently ceded by the princely states to the north and northwest of Yogyakarta.
The Dutch relief force, accompanied by troops from Sumenep and the Mangkunegaran, arrived in Yogyakarta in 19 August and prevented the city from falling. Dutch forces also reinforced the Magelang area, suppressing several uprisings there. The rebels would unsuccessfully assault Yogyakarta several times throughout August and September, until a relief force of 7,500 commanded by de Kock arrived in Yogyakarta on 25 September and ended the siege. De Kock attempted to negotiate with Diponegoro by September 1825, but Diponegoro rejected his offer. An attempt by Dutch forces to assault Selarong failed shortly after, as Diponegoro had evacuated his hideout. De Kock continued his attempt to capture Diponegoro throughout late 1825 and 1826, but despite a series of skirmishes and battles, failed to capture him. Dutch forces also captured in June 1826 a rebel strongpoint at Pleret, Mataram's old capital, following an assault.
Diponegoro began to march northwards, killing a large number of Yogyakartan nobles in an ambush, destroying a Dutch column near Mount Merapi and seizing a Dutch strongpoint. He linked up with a rebel force commanded by Kyai Maja and moved to assault de Kock's headquarters in Surakarta. However, disagreements between Kyai Maja and Diponegoro caused delays which allowed Dutch forces to concentrate in Surakarta. Diponegoro was defeated near Gawok west of Surakarta on 15 October 1826, shattering his numerical advantage and severely limiting the rebels' ability to engage in offensive operations.

### Guerilla war

Diponegoro retreated westwards after his defeat at Gawok, still in command of a scattered army of around 5,000 and continuously receiving supplies and firearms through smugglers. Although he lost the core of his army, he continued to fight a guerilla war and retained control of much of the Yogyakarta Sultanate's countryside. On the other hand, Dutch forces were curtailed by disease, uncooperative local nobles, many of which held sympathies or outright sided with Diponegoro, and a hostile populace. By April 1827, 1,600 of de Kock's men had been killed, limiting his ability to control the countryside. Furthermore, the governor-general Leonard du Bus slashed government spending, limiting de Kock's ability to recruit native soldiers. De Kock would later compare Diponegoro's guerilla campaign with the war in the Vendée.
Between December 1826 and January 1827, little military action occurred, as both sides opted against attacking. Starting in February, Dutch forces went on the offensive, attacking Diponegoro's base several times between February and June and forcing him to move bases or temporarily retreat. Dutch forces began establishing field fortifications in 1827 on a large scale in order to secure key supply routes. After two of his commanders defected to the Dutch in July 1827, Diponegoro was defeated in a series of battles and was forced away from the city of Yogyakarta. By late 1827, Diponegoro's forces had scattered into smaller groups. Both sides agreed to a brief ceasefire to negotiate between August and September 1827, but no agreement was reached and fighting continued.
During the ceasefire, Diponegoro had moved west along the south coast, crossing into the Bagelen [id] area west of Yogyakarta by October 1827. This caught Dutch forces stationed there by surprise, and after a series of assaults on Dutch strongpoints, Diponegoro's men were initially pushed inland. By early 1828, rebel forces in the vicinity of Yogyakarta and Surakarta had been reduced to small groups. These would be further reduced by a Dutch operation which lasted until July 1828, and more field fortifications were constructed to deny rebels the ability to regain control. Meanwhile, Diponegoro's men continued to cross into Bagelen, largely taking over its countryside by the end of the year while Dutch control was limited to the immediate vicinity of their fortifications.
Beyond the vicinity of Yogyakarta and Surakarta, other areas of Java also saw fighting. In the northeastern coast near Dutch-held Semarang, a rebel army operated under Prince Serang, supported by his mother Nyi Ageng Serang (in command of a cavalry unit). Prince Serang's forces reportedly had a strength of 8,000 at the beginning of the war. They surrendered in mid-1827. Another area of rebel activity was modern East Java – near Rembang under Raden Aria Sasradilaga (Diponegoro's brother-in-law), and around Ngawi and Madiun under Raden Ayu Yudakusuma [id]. The two groups briefly merged in November 1827 – March 1828 until Sasradilaga's defeat, after which Yudokusumo continued her campaign until surrendering in October 1828. The Dutch described Yudakusuma as "a clever but much dreaded woman", and she led an attack on Ngawi's Chinese community in September 1825. These activities led to the construction of fortifications around Semarang and Madiun, although most were still constructed within Diponegoro's area of operations.

### Rebel collapse

Dutch command expanded its fortification strategy, known as Bentengsteelsel, in 1828 and 1829. Indonesian military historian Saleh Djamhari tabulated the construction dates of 258 forts during the war, of which 133 were constructed in 1828–1829. These were especially concentrated in the vicinity of Yogyakarta and the Bagelen area. The rebels were confined during this period into a killing area between the Progo and Bogowonto rivers [id]. Dutch forces also began employing more repressive tactics during this period to sap Diponegoro's support base. In November 1828, key rebel commander Kyai Maja was ambushed, and surrendered to the Dutch.
The war took a slower pace in early 1829 as Dutch forces reorganized and prepared for a finishing blow, with a three-month ceasefire between the parties in January–April 1829. During this time, Diponegoro's commander Sentot became engaged in disputes with civilian administrators, which further weakened the rebel war effort. Popular support for Diponegoro in his area of operations had declined significantly, due to hardships caused by the war.
The Dutch offensive was launched in June 1829. Diponegoro was defeated in several encounters within a space of two months, though not captured, and lost a number of strongpoints. By September 1829, Diponegoro and Sentot had been forced into a smaller area in the Progo Valley, with just 300 soldiers. Dutch command discovered their position, and they were decisively defeated at the village of Siluk on 17 September. During the battle, many of Diponegoro's commanders were killed in action, and the remnants of the rebels split in two with one group led by Diponegoro and another by Sentot.

### Conclusion

Following his defeat in Siluk, coupled with the death of Prince Jayakusuma shortly after, Diponegoro's situation became untenable. Most of his commanders had been killed, captured, or surrendered, with Sentot surrendering in October 1829. His other remaining commanders gave up the fight, leaving Diponegoro with around fifty men as his personal escorts. The Dutch and the new governor-general Johannes van den Bosch, on the other hand, received explicit instructions from Dutch King William I that Diponegoro was to be killed or captured, and no agreement was to be entered. De Kock, on the other hand, was much more open to negotiations, and he managed to lobby Van den Bosch to grant Diponegoro safe conduct.
After a successful early meeting in February 1830 with the Dutch local commander, Diponegoro journeyed to Magelang in order to meet personally with de Kock. After several informal meetings between the two, Diponegoro gave de Kock a visit at the Dutch Resident's house on 28 March. During this visit, de Kock announced Diponegoro's arrest, and Dutch soldiers surrounded the house. Diponegoro's 100 or so escort troops were away on morning exercises at the time of the arrest, and were disarmed peacefully. Diponegoro was taken away that day to Semarang to be exiled, ending the war.

## Aftermath

Diponegoro was exiled to Manado with a number of followers, as colonial authorities saw that keeping him in Java posed an unacceptable risk. He was moved to the more fortified Makassar in 1833 due to concerns of a British attack on Manado in the event of an European conflict – the Dutch feared that Diponegoro with British support may lead another revolt in Java. Diponegoro would be restricted to Fort Rotterdam starting in 1849, and he died on 8 January 1855. Sentot was given command of a Javanese unit in the Padri War, but was then exiled to Bengkulu in 1833.
The war had caused severe damage to Java, especially in modern Central Java and East Java, along with parts of the north coast outside of those provinces. At least 200,000 Javanese were killed, with the number of combat deaths believed to be 20,000 or less. Between 1825 and 1831, colonial authorities in affected regions reported a population decline in Mataram, Yogyakarta, and Gunung Kidul areas from just over 400 thousand to under 200 thousand. One-third of Java's population of 6 million were directly affected by the war, and around one-quarter of arable land in Java were damaged.
The Dutch annexed significant proportions of the princely states' remaining territories – namely outlying areas known as mancanagara – shortly after the war, leaving the Yogyakarta Sultanate with the modern boundary of the Yogyakarta Special Region (with a small amount of territory within the region held by the Pakualaman). The Sunan of Surakarta, Pakubuwono VI, was deposed by the Dutch and exiled to Ambon in 1830 due to Dutch suspicions of him working with Diponegoro. Diponegoro's descendants were barred from entering Yogyakarta's keraton until 1950, when the sultanate under Hamengkubuwana IX reconciled with the descendants. The rump princely states no longer posed a threat to the Dutch, which now had full control of Javanese lands. No further significant military threats to Dutch rule to Java would happen until the Second World War and the ensuing Indonesian National Revolution in the 1940s.
To the Dutch, the war had cost 15,000 military dead – 8,000 Dutch and 7,000 native Indonesian recruits. Most Dutch military fatalities were due to tropical diseases exarcebated by poor hygiene in field hospitals, while native Indonesian fatalities were mostly combat related. Out of a 3,154-strong expeditionary force sent from the Netherlands during the war, two-thirds had died by 1830. The financial cost of the war was estimated at 20 to 25 million guilders. This financial cost, coupled with the Belgian Revolution which broke out shortly after the war's end, heavily strained the Dutch government finances. The costs would be recouped following the introduction of the Cultivation System by new Governor-General Johannes van den Bosch in 1830, which generated immense profits for the Dutch through a coerced labor system. Revenues from the Cultivation System to the Dutch treasury was estimated at over 800 million guilders until its abolition in the 1870s.
Heavy casualties and costs to the Dutch colonial army resulted in changes of how the colonial government approached colonial wars, especially outside Java and Sumatra. In order to avoid guerilla warfare and attrition, Dutch forces adopted a shock and awe approach with coastal bombardments and large-scale landings, intended to break any intent to resist from local populations and rulers. Manpower shortages and increased doubts on the loyalty of native troops after the war led to the recruitment of Africans into the Dutch colonial army, known in Indonesia as Belanda Hitam ("Black Dutch").

## Legacy
### Depictions and historiography

The war has inspired a number of artistic depictions, especially in Indonesia. Just the capture of Diponegoro at the end of the war inspired two nineteenth-century paintings: The Submission of Prince Dipo Negoro to General De Kock by Dutch painter Nicolaas Pieneman, and The Arrest of Pangeran Diponegoro by Javanese painter Raden Saleh. 20th-century Indonesian painters who had depicted the war include Basuki Abdullah, Sindoedarsono Soedjojono [id], and Hendra Gunawan [id]. The 1979 Indonesian movie November 1828 by Teguh Karya depicted the war, and became at the time the most expensive Indonesian movie ever made, while also becoming "a classic and iconic nationalist text".
During his exile, Diponegoro wrote the Babad Dipanegara, a manuscript of over 1,000 pages styled as poetry. A wayang (shadow puppet) show directly narrates the war based on the Babad. It has also been used as a primary source by Dutch and Indonesian authors writing histories of the war. The definitive English-language account of the war was written by British historian Peter Carey.

### Chinese Indonesians

The war had a long-term influence on the relationship between the Chinese community in Java and the Javanese people. In addition to Dutch colonists, the Chinese minority in Java was also targeted by Diponegoro's forces. For example, the Chinese residents of Ngawi and Bengawan Solo's riverbanks were massacred in September 1825. The Diponegoro troops despised the Dutch and the Chinese as foreign 'infidels' who had come to pillage Java. On the other hand, Chinese and mixed communities in the North Coast of Java, mostly converts to Islam, fought as part of Sasradilaga's army in 1827–1828. Chinese merchants were also suppliers of arms and money to Diponegoro's forces. Diponegoro accepted Chinese recruits to his army, though he expected them to convert to Islam – involving circumcision, saying the shahada, and cutting their queue pigtails.

### Indonesian nationalism

The war, and Diponegoro, has been attributed as the origin of Indonesian nationalism. During the Indonesian National Awakening, imagery of Diponegoro and the Java War was used by Indonesian nationalists as an unifying factor of resistance against colonial rule, in favor of the more sectarian Islamic angle. Various non-government institutions – ranging from the Islamist Masyumi Party to the now-banned Indonesian Communist Party – use Diponegoro as an icon or claim inspiration from his rebellion.
Diponegoro was declared a National Hero of Indonesia in 1973. Prior to the official designation, many Indonesian leaders had publicly referred to Diponegoro as a national hero, especially during the Indonesian National Revolution. A number of Indonesian institutions are named after Diponegoro – such as an Indonesian Army military district and a state-funded university – along with street names in most Indonesian cities.