 John entered the Royal Navy on 20 September 1798 as midshipman on , a 98-gun second-rate ship of the line commanded by Captain John Holloway that was attached to the Channel Fleet.The other captains of the ship included Sampson Edwards, Henry Nichols, and William Grenville Lobb.The ship also bore the flag of Admiral Lord Nelson and Admiral Charles Morice Pole.