-
Notifications
You must be signed in to change notification settings - Fork 39
Running demos
First, from the command line or from your IDE, run mvn install.
To run the demos
When running the demos, you need to specify the following VM argument:
-Djava.library.path=target/natives
The actual command to run a demo file looks like:
mvn -pl demo exec:java -Dexec.mainClass="MAIN_CLASS_HERE"
Where "MAIN_CLASS_HERE" is the fully qualified path of the main class, eg "org.ode4j.demo.DemoDHinge"
Get the latest ode4j: https://github.com/tzaeschke/ode4j/releases
You will need both core and demo.
Get LWJGL from: http://lwjgl.org/download.php
Assuming you unzipped LWJGL into the same directory that contains ode4j’s jar’s. Run:
java -cp core-0.3.0.jar:demo-0.3.0..jar:lwjgl-2.9.0/jar/lwjgl.jar:lwjgl-2.9.0/jar/lwjgl_util.jar -Djava.library.path=lwjgl-2.9.0/native/macosx/ org.ode4j.demo.DemoChain2
Replace macosx with your native OS.