The reason "Batavia" was at Malacca was that she served as a transport during the British invasion of Java in 1811. She was part of the third division, which sailed from Malacca on 14 June 1811.