I bought a wrecked XJ that sat under a tree with no gas cap for +2 years. It started right up and drove onto the trailer.
Test the CPS. and fuel pressure.
For 1996+ Jeeps, the OBD-II engine computer (ECU/PCM) re-boots, and the idle settings are deleted, when you: (1) let the battery run...