Removal Of GTK_WIDGET_WINDOW In SWT 4.5 Causes A JOGL Runtime Error

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Removal Of GTK_WIDGET_WINDOW In SWT 4.5 Causes A JOGL Runtime Error

rhatcher
I ran into a runtime error attempting to run with JOGL 2.2.4 in an Eclipse/RCP app built against the recent Eclipse Mars release along with its associated SWT 4.5 upgrade:

>>>> ExternalContributionFactory.create: failed, throwable = java.lang.ExceptionInInitializerError
java.lang.ExceptionInInitializerError
        at com.jogamp.newt.swt.NewtCanvasSWT.<init>(NewtCanvasSWT.java:127)
        at com.jogamp.newt.swt.NewtCanvasSWT$1.run(NewtCanvasSWT.java:106)
<snip>
Caused by: javax.media.nativewindow.NativeWindowException: java.lang.NoSuchMethodException: org.eclipse.swt.internal.gtk.OS.GTK_WIDGET_WINDOW(long)
        at com.jogamp.nativewindow.swt.SWTAccessor.<clinit>(SWTAccessor.java:203)
        ... 87 more

I submitted bug 1170 and offered a possible fix, which could of course be totally off the mark.  I'm sure Petros will have more to say about it.

I thought I should also mention the issue here in case anybody else encounters it and isn't keeping an eye on the bug database.

Rob
Reply | Threaded
Open this post in threaded view
|

Re: Removal Of GTK_WIDGET_WINDOW In SWT 4.5 Causes A JOGL Runtime Error

gouessej
Administrator
You should put yourself into the CC list, shouldn't you?
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Removal Of GTK_WIDGET_WINDOW In SWT 4.5 Causes A JOGL Runtime Error

rhatcher
Good point.