I am currently working on some OSGi application and I wanted to use the library Jzy3d to display 3D graphs. Basically, this library leverage opengl for java (JOGL ?).
I have added a specific bundle including all the jars needed to run Jzy3d and exporting all org.jzy3d.*.
From an other bundle, I try to use the library but at runtime, executing Chart chart = new Chart(); throws the following exception :
java.lang.UnsatisfiedLinkError: no gluegen-rt in java.library.path
At the beginning, I thought it was due only to the different classloaders of the different bundles so I moved the failing lines in a “Util” class inside the library bundle that I now call from the other bundle.
However, it didn’t change anything : I got always the same error about gluegen-rt.
I have checked that gluegen-rt.jar is in the bundle classpath of the “library bundle”. It is also included in the binary build (as all the other needed jars).
java.library.pathis the path to native libraries, so I assume you either didn’t set it or some library is missing. Check what native libraries JOGL needs for your OS and architecture and provide a path to them.