 Initially the economy of Java relied heavily on rice agriculture.Ancient kingdoms such as the Tarumanagara, Mataram, and Majapahit were dependent on rice yields and tax.Java was famous for rice surpluses and rice export since ancient times, and rice agriculture contributed to the population growth of the island.