Re: JOGL with OSGi
Posted by
Oscar Vargas Torres on
May 10, 2013; 11:24pm
URL: https://forum.jogamp.org/JOGL-with-OSGi-tp3773888p4029139.html
I have been trying to follow your advice but need additional help.
you add the JOGL native library JAR files (e.g. gluegen-rt-natives-linux-amd64.jar and jogl-all-natives-linux-amd64.jar if you're in 64-bit Linux) into an OSGi bundle ***somehow***
I have been trying to do that with bnd and the terminal, using a properties.bnd file. Then bnd warns that an empty output file is generated (maybe because there are no classes there, only jnilib files). I added a Include-Resource header to force bnd to include the jnilib files.
I tried to do that with Eclipse bndtools and Eclipse RCP but I keep getting the same old error: no gluegen-rt library in java.library.path.
I tried to add the java code you posted but I cannot get this to compile:
new JarUtil.Resolver()
I am using the files here
http://search.maven.org/#artifactdetails|org.jogamp.gluegen|gluegen-rt|2.0-rc11|jar
Maybe I am supposed to use a newer version of jogamp-all-platforms.7z ...
Could you please, give me more detailed help? I have been trying another day and this is driving me nutts!