Re: Looking for example using SWT GLCanvas
Posted by drstine on Jul 23, 2012; 4:44pm
URL: https://forum.jogamp.org/Looking-for-example-using-SWT-GLCanvas-tp4025603p4025629.html
Hunting down the ClassNotFoundException: org.eclipse.swt.widgets.Canvas has been somewhat difficult. Though I have 25 yrs experience in C/C++ development I'm new to Java just this year. Maybe someone can enlighten me in the "Java Way."
It seems that my application cannot even load the jogamp SWT GLCanvas like this:
Class<?> t = Class.forName("com.jogamp.opengl.swt.GLCanvas");
It gets a run-time exception even though it compiles fine.
I've tried the latest build of JOGL (b784) and Glugen (b575) , updated my JDK to 1.7u5 have the latest SWT library (3.7.2) for Eclipse Indigo. It seems that the super call in GLCanvas just cannot resolve the org.eclipse.swt.widgets.Canvas in the Eclipse RCP plugin environment? I've read all about the Buddy Class loading and the Context Class loader, but neither of these seems to apply here.
Next step is to try to build JOGL using Java 1.7 in Eclipse. Does anyone know if this is possible?