JOGL displaying issues.

Hi All,

I am trying to run a simple 3d program. However I get a bug which is connected with the following method:

glu.gluOrtho2D (0.0, 500.0, 0.0, 300.0);

the error is:

Exception in thread"AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: dispatch_gluOrtho2D

at net.java.games.jogl.impl.GLUImpl.dispatch_gluOrtho2D(Native Method)

at net.java.games.jogl.impl.GLUImpl.gluOrtho2D(GLUImpl.java:381)

at SecondGLEventListener.init(SecondGLEventListener.java:31)

at net.java.games.jogl.impl.GLDrawableHelper.init(GLDrawableHelper.java:68)

at net.java.games.jogl.GLCanvas$InitAction.run(GLCanvas.java:187)

at net.java.games.jogl.impl.windows.WindowsGLContext.makeCurrent(WindowsGLContext.java:144)

at net.java.games.jogl.impl.windows.WindowsOnscreenGLContext.makeCurrent(WindowsOnscreenGLContext.java:110)

at net.java.games.jogl.impl.GLContext.invokeGL(GLContext.java:162)

at net.java.games.jogl.GLCanvas.reshape(GLCanvas.java:105)

at java.awt.Component.setBounds(Unknown Source)

at java.awt.BorderLayout.layoutContainer(Unknown Source)

at java.awt.Container.layout(Unknown Source)

at java.awt.Container.doLayout(Unknown Source)

at java.awt.Container.validateTree(Unknown Source)

at java.awt.Container.validateTree(Unknown Source)

at java.awt.Container.validateTree(Unknown Source)

at java.awt.Container.validateTree(Unknown Source)

at java.awt.Container.validate(Unknown Source)

at java.awt.Window.show(Unknown Source)

at java.awt.Component.show(Unknown Source)

at java.awt.Component.setVisible(Unknown Source)

at SecondJoglApp$1.run(SecondJoglApp.java:19)

at java.awt.event.InvocationEvent.dispatch(Unknown Source)

at java.awt.EventQueue.dispatchEvent(Unknown Source)

at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.run(Unknown Source)

it is only related to that one line and if i remove it then the program runs fine but of course a blank screen is displayed rather than a few dots. Note that I am using the IDE Eclipse.

[2398 byte] By [zainula] at [2007-10-2 8:00:19]
# 1

Hi,

Am not an expert with JOGL., but I had this problem when the associated dll files of jogl were not in the bin folder of the JRE.

The error went away when I copied it. However when I upgraded to the latest version of JOGL namely the JSR compliant one, the error surfaced again but it was in the line where I was trying to get the GLU from the GLAutoDrawable in the display function. Have not yet found a way to overcome this.

gl.getGLU() was giving error.

zeusa at 2007-7-16 21:52:05 > top of Java-index,Other Topics,Java Game Development...
# 2
I've been having the same problem with getGLU(). I can't seem to find the function in any packages. Help would be greatly appreciated.
HexaDecimala at 2007-7-16 21:52:05 > top of Java-index,Other Topics,Java Game Development...