Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Ensure that you have Apache Ant installe installed (this sample was tested with ant 1.6.5, but any recent version should work)
  2. Download the OpenJPA binary release from the downloads page and unpack it by double-clicking it.
  3. Launch a console
  4. Change directories to the Desktop, then cd to the unpacked OpenJPA folder
  5. cd to the examples subdirectory, then to the hellojpa subdirectory
  6. Run ant, which will compile the classes and run the sample application. At the end of the build, you should see the text Hello Persistence!.
  7. Congratulations! You have run your first sample program using OpenJPA. Examine the Main.java example program, as well as the Message.java entity class, play with them by adding fields and working on new persistence operations. Have fun!