Login  Register

Re: JOGL with OSGi

Posted by sam on Aug 08, 2013; 9:28am
URL: https://forum.jogamp.org/JOGL-with-OSGi-tp3773888p4029758.html

I created now some packages where gluegen and jogl is combined into a single package (including sources and natives)

That works for the moment but it would be great if the class loading problem could be fixed in the future. As far as I understand it would just be to extract the System.load(...) and System.loadLibrary(...) call to some class, which is part of each bundle: jogl, jocl and joal, e.g. as part of the LoaderAction of JNILibLoader.

Btw. don't use the "uses:" osgi clause (http://blog.springsource.org/2008/10/20/understanding-the-osgi-uses-directive/). I took me around a day to find out why the combined gluegen and jogl, didn't work. The problem was that because of the uses clause, I again got some different classloaders.

So thanks for your help.