The regiment remained in India until it joined the Invasion of Java and the capture of Fort Cornelis in August 1811. Leaving Java in September 1816, the vessel the battalion was travelling on, , was wrecked off Preparis, Burma, on 5 November on the way to Bengal. There were relatively few deaths and the rescued most of the survivors, who it carried to Calcutta; cruisers from the British East India Company rescued the remainder. "Prince Blucher" carried a part of the battalion on to England, arriving at Portsmouth in June 1817.