Re: JOGL with OSGi
Posted by Wade Walker on May 29, 2013; 8:30pm
URL: https://forum.jogamp.org/JOGL-with-OSGi-tp3773888p4029259.html
Hmm, that is strange that it's a runtime exception and not found at compilation time. There are a couple of things to check:
- Make sure your com.jogamp.jogl bundle is in your plugin.xml dependencies
- Make sure your com.jogamp.jogl bundle is also in your <project>.product dependencies (if your plugin.xml was correct, it should have been put there automatically when you created the <project>.product file)
- Double-check that you're using a version of JOGL that actually contains JarUtil$Resolver (it's pretty recent, so it might still only be in a nightly build, though it shouldn't compile if that wasn't right)
The first two are the most likely -- Eclipse may check dependencies differently for compilation than OSGi does at runtime.
Also, just as a reference: I'm setting up the resolver in my editor's createPartControl(), before any JOGL code is called, and I'm not using a static code block anywhere to call GLProfile.initSingleton().