Re: JOGL with OSGi
Posted by
Wade Walker on
May 11, 2013; 5:20pm
URL: https://forum.jogamp.org/JOGL-with-OSGi-tp3773888p4029152.html
Glad you found the tutorial helpful! The JarUtil.setResolver() shows up in nightly builds of JOGL, I don't think it's made it into an official release yet, so you'd need to use a version from
http://jogamp.org/deployment/autobuilds/master/.
My tutorial does things the "old fashioned" way, with a fragment bundle for each platform. If you use JarUtil.setResolver(), you can put all 5 platforms of native JARs into the com.jogamp.jogl project, and remove all 5 fragment projects. I've got an example in GitHub at
https://github.com/WadeWalker/com.jogamp.jogl.
I usually put the JarUtil.setResolver() call in createPartControl() of the editor. If you use it, you also need to make sure you're not calling GLProfile.initSingleton() in a static block anywhere, since it would be run before the resolver is set.