Re: JOGL with OSGi
Posted by
Wade Walker on
Feb 25, 2012; 9:12pm
URL: https://forum.jogamp.org/JOGL-with-OSGi-tp3773888p3775780.html
In my tutorial at
http://wadeawalker.wordpress.com/2010/10/09/tutorial-a-cross-platform-workbench-program-using-java-opengl-and-eclipse/, I show how to put JOGL into a form that can be deployed as an Eclipse RCP project, which I assume is similar to how it would work in a raw OSGi project. The trick I use is creating a project/bundle for JOGL that contains the gluegen and JOGL JARs, then creating fragment projects/bundles for each of the native platforms. At runtime, OSGi loads the correct fragment for the platform.
I believe that new development builds of JOGL have all the native libraries for all platforms available in one big JAR -- if so, you could just make one single JOGL bundle with all the JARs in it, without using native fragments. But I haven't tried it this way yet.