The Arabs, it is known, had in the ninth century, if not long previously, made themselves acquainted with these countries; and the Chinese, if we may trust the Javan annals, had visited Java at the same period. According to Kempfer, the _Maláyus_ in former times had by far the greatest trade in the Indies, and frequented, with their vessels, not only all the coasts of Asia, but even ventured to the shores of Africa, and particularly to the great island of Madagascar; "for," adds this author, "John de Barros in his Decades, and Flaccourt in his History of Madagascar, assures us, that the language spoken by the inhabitants of that large African island is full of Javan and Malayan words: subsisting proofs of the commerce with these two nations, about two thousand years ago the richest and most powerful of Asia, had carried on with Madagascar, where they had settled in great numbers."

Whatever credit we may attach to these statements and inferences, respecting the commerce of these islands before they were visited by Europeans in the fifteenth century, it is certain that, at this period, an extensive trade was established at Malacca, Acheen, and Bantam, then the great emporiums of the Eastern Archipelago. Hither the rich produce of Sumatra, Borneo, and the Moluccas, was conveyed in the small trading craft of the country, and exchanged for the produce of India and China. These ports were then filled with vessels from every maritime state of Asia, from the Red Sea to Japan. The Portuguese, who preceded the Dutch in India, and who had fixed upon _Goa_, on the coast of Malabar, as the capital of their eastern settlements, selected Malacca as the most convenient station for conducting and protecting their trade with the islands, and erected it into a secondary capital. The Dutch finding this desirable station pre-occupied, and being foiled in their attempts to dislodge their rivals, first established a commercial settlement at Bantam, and subsequently subdued by force of arms the neighbouring province of _Jákatra_, (or _Jokárta_), on which, as will be afterwards mentioned, they built the fortress, the city, and the port of Batavia.

The History of Java, v. 1-2 — Part 206

Nor was it without reason that they selected this spot for the capital of their new empire. "What the Cape of Good Hope is," says Adam Smith, "between Europe and every part of the East Indies, Batavia is between the principal countries in the East Indies. It lies upon the most frequented road from Hindustan to China and Japan, and is nearly about midway on that road. Almost all the ships, too, that sail between Europe and China, touch at Batavia; and it is, over and above all this, the centre and principal mart of what is called the country trade of the East Indies, not only of that part of it which is carried on by Europeans, but of that which is carried on by the native Indians, and vessels navigated by the inhabitants of China and Japan, of Tonquin, of Malacca, of Cochin China, and the Island of Celebes, are frequently to be seen in its port. Such advantageous situations have enabled these two colonies to surmount all the obstacles which the oppressive genius of an exclusive company may have occasionally opposed to their growth: they have enabled Batavia to surmount the additional disadvantage, of perhaps the most unwholesome climate in the world."

The History of Java, v. 1-2 — Part 206