Posted by
gouessej on
Dec 02, 2010; 3:28pm
URL: https://forum.jogamp.org/How-to-use-JOGL-with-OSGI-tp2006160p2006474.html
Hi!
I use OSGI in Eclipse. I create 2 fragments, one for the JARs, one for the natives. When I launch an Eclipse configuration, I choose the fragment containing the JARs and the fragment containing the natives for my platform. I don't need to use Bundle-NativeCode, I use Export-Package, Bundle-ClassPath and Fragment-Host:
Bundle-ClassPath: lib/gluegen-rt.jar,
lib/jogl.all.jar,lib/nativewindow.all.jar,lib/newt.all.jar
.
Export-Package: com.jogamp.common,
com.jogamp.common.jvm,
com.jogamp.common.nio,
com.jogamp.common.os,
com.jogamp.common.util,
com.jogamp.opengl.impl,
com.jogamp.opengl.util,
com.jogamp.opengl.util.awt,
com.jogamp.opengl.util.gl2,
com.jogamp.opengl.util.glsl,
com.jogamp.opengl.util.glsl.fixedfunc,
com.jogamp.opengl.util.glsl.fixedfunc.impl,
com.jogamp.opengl.util.glsl.sdk,
com.jogamp.opengl.util.packrect,
com.jogamp.opengl.util.texture,
com.jogamp.opengl.util.texture.awt,
com.jogamp.opengl.util.texture.spi,
com.jogamp.opengl.util.texture.spi.awt,
javax.media.opengl,
javax.media.opengl.awt,
javax.media.opengl.fixedfunc,
javax.media.opengl.glu,
javax.media.opengl.glu.gl2,
javax.media.opengl.glu.gl2es1