Tilmann edited this page Jan 3, 2019 · 14 revisions

How to set-up maven dependencies

ode4j consists of several maven artifacts.

The core artifact contains the complete physics engine:



If you also want the tests, demos or C-style wrapper, you get the complete project with:


This parent artifact contains the following sub-artifacts:

  • core: The physics engine core.
  • demo: The demos.
  • core-cpp: A C-style wrapper around the core. This resembles the API of the original ODE library. This can be useful when migrating code from C\C++ to java.
  • demo-cpp: Same as demos, but based on the core-cpp API. This also includes the JUnit tests.

Note that the demos have dependencies on lwjgl and junit. If you want to use the demos, you need to set up the mavennatives plugin.

When running the demos, you need to specify the following VM argument:


The maven repo is hosted here.


Exception in thread "main" java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path

You need to add -Djava.library.path=target/natives as VM argument when running a demo

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.