In the following year he commanded the expedition organized for the conquest of Java, which the governor-general, Lord Minto, himself accompanied. The storming of the strongly fortified position of Meester Cornelis (28 August 1811), stubbornly defended by a Dutch garrison under General Janssens, practically achieved conquest of the island, and after the action of Samarang (8 September 1811) Janssens surrendered. Auchmuty received the thanks of Parliament and was appointed KCB and, on his return home, was promoted to the rank of lieutenant-general. In 1822 he became Commander-in-Chief, Ireland, and a member of the Irish privy council. He died suddenly in August 1822.