Installing Cayenne for JPA use is not much different from the procedure described here. A few JPA specific notes:
In addition to the third-party jars needed by non-JPA Cayenne applications, "lib/third-party" folder contains a few jars needed for JPA: