Hello,
I’m trying to use Jogl as an OSGi bundle so I just packaged the jars and native libraries as a new jar that has a complete Manifest.
I have a simple other bundle which imports packages exported by my Jogl bundle and try to use them displaying the simple Gears as in the first examples.
It works well on linux and windows though i had to add a special framework option to equinox so that sun.awt from rt.jar is accessible to Jogl bundle when Class.forName() is used to get configurations.
So the problem is now to get it working on MacOSX.
With a simple main which instanciate my class, everything seems allright but once it is the start() Method of the bundle which is launched by equinox framework’s BundleActivator i get that error message from MacOSX : http://www.ecornely.be/OSGi_error.txt
Anybody who would try to help me can get my files from http://www.ecornely.be/OSGi.tbz
To try it you may just untar the file and run “java -jar org.eclipse.osgi.jar -console” from target folder or to launch the main file try “java -cp GlGears.jar:…/…/subprojects/Jogl/lib/jogl1_1_1/jogl.jar:…/…/subprojects/Jogl/lib/jogl1_1_1/gluegen-rt.jar:…/org.eclipse.osgi.jar -Djava.library.path=…/…/subprojects/Jogl/lib/jogl1_1_1/macos/ppc/ be.ac.ulg.fapse.stefi.osgi.Main” from plugin folder.
I already tried jogl 1,1,0 and 1,1,1 but it’s exactly the same. If anybody could tell me where i should search to get a kinda solution it’s great. Maybe it’s an equinox bug, maybe a jogl bug or even more probably an error in my code.
Thanks in advance.