Login  Register

Re: OSGi with Bndtools and Apache Felix throws exception

Posted by Wade Walker on Mar 23, 2013; 3:12pm
URL: https://forum.jogamp.org/OSGi-with-Bndtools-and-Apache-Felix-throws-exception-tp4028765p4028774.html

Your bundle settings don't look the same as my MANIFEST.MF. For example, you have gluegen-rt-natives-windows-i586.jar and jogl-all-natives-windows-i586.jar in the classpath, but they shouldn't be -- they don't contain Java classes, they're just archives containing .dlls. They should be in the same directory as your other JARs, though.

Also, you need to have a pretty recent version of JOGL to use the bundle resolver (as shown at the top of https://github.com/WadeWalker/name.wadewalker.OneTriangle/blob/master/src/name/wadewalker/onetriangle/OneTriangleView.java). This is needed for JOGL to be able to find the native JARs, due to the fact that OSGi uses custom classloaders. I'm using recent nightly builds.