Login  Register

Re: Looking for example using SWT GLCanvas

Posted by drstine on Jul 25, 2012; 12:40pm
URL: https://forum.jogamp.org/Looking-for-example-using-SWT-GLCanvas-tp4025603p4025643.html

Wade,

Hey, it's thanks to your well written tutorial mentioned that I've gotten this far.

The funny thing is that my RCP plugin compiles fine so I know that all dependencies are satisfied at compile time.  The ClassNotFoundException occurs at run-time.  This wiki article helps shed some light on the differences.

I'm new to Java so the best I can figure out is that ClassLoader cannot find the super class (org.eclipse.swt.widgets.Canvas) of com.jogamp.opengl.swt.GLCanvas when it's constructed.  I'm using a higher version of the JDK (1.7u5) and also SWT (3.7.2) than the rc9 JOGL jars were built with.  Could this be the cause?  I have not been able to rebuild JOGL with my Eclipse yet to test this theory.

The only other idea I have is the bundle specific classloaders as described in this Eclipse Corner article are not working properly.

Dan