Under the hood on the passenger side fender, back towards the firewall. Should be a black box about the size of a pack of cigarettes.
Been a long time since I've seen one, so take that description for what it's worth. Also, IIRC, that's for a '97-up. Without knowing the year of your XJ, there's no way to say for certain that it'll be anywhere even near that.