Newb in jogl : Problem with GLU

I’ve managed to compile some java opengl …

But when I run it, I have a message :

java.lang.UnsatisfiedLinkError: gluPerspective
at net.java.games.jogl.impl.GLUImpl.gluPerspective(Native Method)
at gin950.prototype3$Listener.init(prototype3.java:147)
at net.java.games.jogl.impl.GLDrawableHelper.init(GLDrawableHelper.java:68)
at net.java.games.jogl.GLCanvas$InitAction.run(GLCanvas.java:166)
at net.java.games.jogl.impl.windows.WindowsGLContext.makeCurrent(WindowsGLContext.java:122)
at net.java.games.jogl.impl.windows.WindowsOnscreenGLContext.makeCurrent(WindowsOnscreenGLContext.java:107)
at net.java.games.jogl.impl.GLContext.setRenderingThread(GLContext.java:244)
at net.java.games.jogl.GLCanvas.setRenderingThread(GLCanvas.java:135)
at net.java.games.jogl.Animator$1.run(Animator.java:87)
at java.lang.Thread.run(Unknown Source)

Does anyone can help me ?

I suppose I’ve to link with the glu32.dll but … how to do this ?

I’ve already work with openGL but with C++. And I’ve a project to do for my studies with jogl.

Sorry if my english is bad, I’m a french student.
:-[

And you only get this when using GLU functions? When you leave out all the gluXxxx() functions the programs runs without any problems? If so I expect that the glu32.dll is just missing from your path or not installed. It does not have anything to do with linking, that’s for sure.

If I remove all the gluxxx() functions it works good. :wink:

But, when I add any of the gluxxx() function, juste like gluPerspective() , I have these troubles.

I have a glu32.dll installed in Windows directory (Windows\System32), but I don’t know why it is not recognized. ???

Have I to add it in a command line compilation ?
“java demo.java glu32.dll” ???

Thanks for your help, ;D ;D

Have you tried to run a native application using GLUT ? Did it work ? (IIRC some NeHe tutorials were ported to GLUT)

On my Win98, glu32.dll is located in Windows\System, so you could try to move it there and see if it works.

I wouldn’t copy anything to \Windows\System if you’re using a modern OS, so just leave it in System32 because that’s where it belongs.

What you should check is your PATH, does it contain \Windows\System32? If it doesn’t you should add it because the PATH is one of the things Java uses to find native dlls.

What you could try if all else fails, although its a long shot, is copying the dll to the jre\bin directory of your JDK.