The bug is reproducible.
I run my program as an applet under Mozilla (0.9) with
java plugin 1.4 from jdk 1.4-beta2.
my OS is windows 2000
Using GL4JAVA 2.7 no problem occurs.
when I replace the gl4java.jar (ver 2.7) into
c:\program files\javasoft\JRE\1.4\lib\ext by the
gl4java.jar (ver 2.8 prerelease2) provided on
sourceforge I get a java.lang.UnsatisfiedLinkError:
lockJAWT and a stack trace on the draw of first image
of the applet.
The first image appears but no additional frame would
be calculated.
When I drag any other application window over the
applet, additional frames are calculated and displayed.
The error occurs (i beleive) calling glj.gljMakeCurrent
().
Hereunder you will find the guilty calling method and
the stack trace.
For additionnal info mail me at acousinie@wanadoo.fr
/**
* void display()
*
* Draw to the canvas.
*/
public void display()
{
//Ensure GL is initialised correctly
if (!glj.gljMakeCurrent())return;
//Clear The Screen And The Depth Buffer
gl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
//Reset The View
gl.glLoadIdentity();
/*
* OM custom code
* for each registered object execute the display()
method
*/
mainScene.display();
//Swap buffers
glj.gljSwap();
}
java.lang.UnsatisfiedLinkError: lockJAWT
at gl4java.GLContext.lockJAWT(Native Method)
at gl4java.GLContext.gljMakeCurrent
(GLContext.java:2366)
at OM.SceneToolkit.OMRenderCanvas.display
(OMRenderCanvas.java:126)
at gl4java.awt.GLCanvas.sDisplay(GLCanvas.java:674)
at gl4java.awt.GLCanvas.paint(GLCanvas.java:490)
at gl4java.awt.GLCanvas.update(GLCanvas.java:369)
at sun.awt.RepaintArea.paint(RepaintArea.java:194)
at sun.awt.windows.WComponentPeer.handleEvent
(WComponentPeer.java:262)
at java.awt.Component.dispatchEventImpl
(Component.java:3561)
at java.awt.Component.dispatchEvent
(Component.java:3363)
at java.awt.EventQueue.dispatchEvent
(EventQueue.java:448)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy
(EventDispatchThread.java:193)
at java.awt.EventDispatchThread.pumpEventsForHierarchy
(EventDispatchThread.java:147)
at java.awt.EventDispatchThread.pumpEvents
(EventDispatchThread.java:141)
at java.awt.EventDispatchThread.pumpEvents
(EventDispatchThread.java:133)
at java.awt.EventDispatchThread.run
(EventDispatchThread.java:101)