In 1810 Captain Samuel Warren took command and on 31 December sailed her for the Cape of Good Hope and thence to the East Indies. In the East Indies she took part in the operations in Java and the rest of the Dutch East Indies. In 1811, "President" was attached to the squadron of Admiral Robert Stopford that captured Java. On 31 August the frigates , "President", , and were detached to take the seaport of Cheribon. In 1847 the Admiralty authorized the issuance of the Naval General Service Medal with clasp "Java" to all remaining survivors of the campaign.