Before replacing the compressor you should check that it's the source of the leak. Don't "assume". I was faced with a leak on my recently purchased 00 Cherokee. First do a visual on the system. If you see traces of oil around joints or on the condensor coil that's your problem. However in my and many other cases there's no visable sign. In that case you put in enough freon to cause the compressor to operate then using a "sniffer" probe all around . You might find as I did that when the sniffer is put near the dash vent that it will go off. That means you need a evaporator coil

On a Cherokee and I suppose Liberties also you first remove the dash to gain axcess to the heater box where the evaporator hides. It too must be removed. I spent the better part of two days replacing the evaporator and heater core while I was in there. Cherokee's have a history of bad evaporators and I hope KJ's are not going down the same path.
tjkj2002 didn't specifically mention it but add the proper amount of refrigerant oil directly into each part replaced. Almost anyone can add freon and make the systen cycle but as he mentions it takes equiptment, training and experience to make it cool properly
The CRD version drier is just like the one used on my XJ. The one carried by most parts stores does not directly fit on the XJ. On my XJ and KJ both ports on the dryer point upward. The common replacement has the one pointing up replaced by a pipe going directly to the evaporator (replacing one of the lines) and the other pointing foward. The one pointing foward did not work on my XJ
I now have a COOL XJ
