Just like any vehicle, avoid first years, though they are still good, and if they have made it this far, the gremlins have probably been exercised.
The JK's first year was 2007 with the 3.8 engine. It's heavy and arguably underpowered, but it is solid. It tends to burn oil, but mine is 209k and...