East Indies. For most of the Dutch East Indies history, and that of the VOC before it, Dutch control over their territories was often tenuous, but was expanded over the course of the 19th century. Only in the early 20th century did Dutch dominance extend to what was to become the boundaries of modern-day Indonesia. Although highly populated and agriculturally productive Java was under Dutch domination for most of the 350 years of the combined VOC and Dutch East Indies era, many areas remained independent for much of this time including Aceh, Lombok, Bali, and Borneo. In 1871, all of the Dutch possessions on the Dutch Gold Coast were sold to Britain. The Dutch West India Company was abolished in 1791, and its colonies in Suriname and the Caribbean brought under the direct rule of the state. The economies of the Dutch colonies in the Caribbean had been based on the smuggling of goods and slaves into Spanish America, but with the end of the slave trade in 1814 and the independence of the new nations of South and Central America from Spain, profitability rapidly declined. Dutch traders moved en masse from the islands to the United States or Latin America, leaving behind small populations with little income and which required subsidies from the Dutch government. The Antilles were combined under one administration with Suriname from 1828 to 1845. Slavery was not abolished in the Dutch Caribbean colonies until 1863, long after those of Britain and France, though by this time only 6,500 slaves remained. In Suriname, slave holders demanded compensation from the Dutch government for freeing slaves, whilst in Sint Maarten, abolition of slavery in the French half in 1848 led slaves in the Dutch half to take their own freedom. In Suriname, after the abolition of slavery, Chinese workers were encouraged to immigrate as indentured labourers, as were Javanese, between 1890 and 1939. Decolonization (1942–1975) Indonesia In January 1942, Japan invaded the Netherlands East Indies. The Dutch surrendered two months later in Java, with Indonesians initially welcoming the Japanese as liberators. The subsequent Japanese occupation of Indonesia during the remainder of World War II saw the fundamental dismantling of the Dutch colonial state's economic, political and social structures, replacing it with a Japanese regime. In the decades before the war, the Dutch had been overwhelmingly successful in suppressing the small nationalist movement in Indonesia such that the Japanese