...
The code for the example provided in this primer is currently available from the OpenJPA subversion repository. Obtaining, building and running the example requires Subversion, Maven version 2.2.1 or later and JDK version 1.6. Be sure to set your JAVA_HOME environment variable to the location of the 1.6 JDK. To get and run the sample you must first get the source for OpenJPA via:
svn co http://svn.apache.org/repos/asf/openjpa/trunk
Next, from the trunk directory, run a quick build to generate the OpenJPA provider jars.
...