Re: JOGL with OSGi
Posted by Gene Lege on May 30, 2013; 1:48am
URL: https://forum.jogamp.org/JOGL-with-OSGi-tp3773888p4029264.html
Thanks again, Wade - yes, it was the first one.
I think everything is working right now on the jogl plugin and its native code.
Unfortunately, I am now seeing:
!ENTRY org.eclipse.e4.ui.workbench 4 0 2013-05-29 16:33:05.518
!MESSAGE Unable to create class 'org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor' from bundle '428'
!STACK 0
org.eclipse.e4.core.di.InjectionException: java.lang.NoSuchMethodError: javax.media.opengl.GLContext.setSynchronized(Z)V
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:63)
at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:861)
at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:841)
...
which I believe I have tracked down to an incompatibility in the version of jogl I am using to utilize the JarUtils.setResolver() and native code mechanism and the version of jogl I apparently need to use with the third party code that is part of my application.
It is actually the third party code that actually utilizes jogl, and they ship a specific version - the jars are dated 12/19/2012, which is their release date, and I suspect that the jogl code that is included is from the 11/2012 release that seems to still be the current official release on the website.
I found the javax.media.opengl.GLContext.setSynchronized() in their jogl jar and not in the one I have been using from 3/2013.
I will keep looking into it - it may be that there is a simple interface change I can make an adapter for, but I suspect that I am going to have to go back to the fragment method. (which I haven't gotten working yet either, but I should be able to with your tutorial :-))