Re: Looking for example using SWT GLCanvas
Posted by Wade Walker on Jul 26, 2012; 12:14am
URL: https://forum.jogamp.org/Looking-for-example-using-SWT-GLCanvas-tp4025603p4025649.html
OK, I just realized I had been misreading your posts -- I hadn't noticed that this error was from within the JOGL SWT canvas, not the original SWT canvas :)
I haven't tried using the new JOGL SWT canvas yet, partially because it mixes AWT-style GLAutoDrawable with SWT (I'd like to keep my SWT apps "pure" SWT), and partially because my apps don't yet need multisampling, which the new canvas enables.
You are right that RCP apps use custom classloaders during startup, but the SWT JAR should already be on that classpath (assuming you've set it up the same as in my tutorial). You could always try breakpointing the code right before it crashes and examining the classpath and classloader there (maybe by inserting some custom code)... maybe that would shed some light on what's going on.