Green’s Dictionary of Slang

ajax n.1

[pun on ‘a jakes’, i.e. jakes n.1 (1); this pun appears in The Metamorphosis of Ajax (1596) by Sir John Harington (c.1561–1612), a plea for the introduction of the water-closet, the supposed coarseness of which so displeased Queen Elizabeth I that its author was temporarily banned from court]

a lavatory.

[UK]Shakespeare Love’s Labour’s Lost V ii: Your lion, that holds his poll-axe sitting upon a close-stool, will be given to Ajax.
Hospital of Incurable Fooles 6: Adoring Stercutio for a god, no lesse unwoorthily then shamfully constituting him a patron and protector of Ajax and his commodities [N].
[UK]Jonson Epicene IV v: A stool were better, sir, of Sir Ajax his invention.
[UK]R. Cotgrave Dict. of Fr. and Eng. Tongues n.p.: retraict An aiax, privie, house of office.
[UK]J. Taylor ‘Taylors Revenge’ in Works (1869) II 144: And with that Marrow-eating hatefull Inke / I’ll make thee (more than any Ajax) stinke.
J. Cotgrave Eng. Treasury 16: Which (like the glorious ajax of Lincoln’s Inne, I saw in London) laps up naught but filth and excrements [N].
[UK]R. Nares Gloss. (1888) 13: ajax. The name of this hero furnished many unsavoury puns to our ancestors [...] Sir John Harington, in 1596, published his celebrated tract, called ‘The Metamorphosis of Ajax’, by which he meant the improvement of a jakes, or necessary, by forming it into what we now call a water-closet, of which Sir John was clearly the inventor.