When the VOC was nationalized on 31 December 1799, many freedoms the Chinese experienced under the corporation were eliminated by the Dutch government. Among them was the Chinese monopoly on the salt trade which had been granted by the VOC administration. An 1816 regulation introduced a requirement for the indigenous population and Chinese traveling within the territory to obtain a travel permit. Those who did not carry a permit faced arrest by security officers. The Governor-General also introduced a resolution in 1825 which forbade "foreign Asians in Java such as Malays, Buginese and Chinese" from living within the same neighborhood as the native population. Following the costly Java War (1825–1830) the Dutch introduced a new agrarian and cultivation system that required farmers to "yield up a portion of their fields and cultivate crops suitable for the European market". Compulsory cultivation restored the economy of the colony, but ended the system of revenue farms established under the VOC.