Later in 1811, "Hesper" was attached to the squadron of Admiral Robert Stopford that captured Java.