First off, if you're not car savvy, you'll get in over your head quickly.
If you don't have anything invested in your Jeep then it would make more sense to sell the Jeep and buy a 4.0L. Depending on stale laws it's either not enforced or pretty strict.
If you go by the book, you'll need an engine that's the same year or newer then your Jeep. I would go with 1993-1995.5. This will make it a bit easier since in '96 (for the 97 production year) the engine had more sensors added which makes a swap more difficult. You will need the engine, transmission and the inputshaft for the transfer case, for starters. You'll want to grab the driveshafts, engine wiring harness, computer, tach/speedometer cluster and engine mounts. You'll need to either cut off the frame mounts on the donor and transfer them over or else buy new mounts for your frame. Might as well take the radiator with it since it's more then likely larger.
You'll want the exhaust to the crossover pipe since that will bolt to your existing exhaust. You could either reuse your engine accessories like the P/S pump. Alternator, fan, waterpump and A/C compressor or use the ones from the donor. With the input shaft I mentioned earlier, you'll need to take apart the transfer case and press out the old one then swap it.
That's most of what's involved...