Re: JOGL with OSGi
Posted by
gouessej on
Aug 08, 2013; 10:34am
URL: https://forum.jogamp.org/JOGL-with-OSGi-tp3773888p4029759.html
sam wrote
That works for the moment but it would be great if the class loading problem could be fixed in the future.
The problem is that GlueGen and JOGL haven't been designed to work in separate class loaders. You can see in the source code that it is possible to choose in which class loader to load them both but the class loader of JOGL will have to be a "son" of the class loader used by GlueGen. Actually, you might find some other blocking problems even with my suggestion.
sam wrote
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.
That's what I meant, feel free to test my suggestion which is very easy since my change to fix the bug 810.