-- Apache OpenJPA -- Running OpenJPA Examples   Overview Quick Start Downloads Documentation Site Index License Privacy Policy Community Events and News Found a Bug? Get Involved Mailing Lists Committers Integration Powered By Thanks Development Nightly Downloads Source Code Testing Issue Tracker Tools Samples Release Management Consumers Tips and Techniques Trouble Shoot Search Running the OpenJPA Examples¶ The examples are packaged so that they run after extracting the openjpa binary distribution. Running directly from the source tree may take some work (not documented here). Build the openjpa binaries $ mvn clean install extract the binary distribution to a temporary directory $ cd openjpa-project/target/site/downloads/ $ unzip -qq -d temp *binary*.zip $ cd temp/$openjpa-version/examples run the helloJPA sample $ cd hellojpa $ ant $ cd .. run the relations sample $ cd relations $ ant $ cd .. run the reversemapping sample Currently only works on unix platforms $ cd reversemapping $ ant $ cd .. Copyright © 2006,2026 The Apache Software Foundation. Licensed under Apache License 2.0. Apache OpenJPA, OpenJPA, Apache, the Apache logo, and the Apache OpenJPA project logo are either registered trademarks or trademarks of The Apache Software Foundation in the United States and other countries. Foundation | Events | License | Security | Sponsorship | Thanks | Privacy