An Irish term used for a toilet. It was originally republican slang for the toilet as if to say they were going to defecate on the old Union Jack. It has become common slang with forgotten roots.
Where's the jacks I need to shite!
Lads stay away from the jacks, I had a rake of pints last night and I've a dose of the shits