I am getting this exception when running one of the test in eclipse, It seems like java can't find the lwjgl dlls, I did add -Djava.library.path=./lib so it should look for the dlls there. Any idea what's wrong?
Sep 2, 2008 2:29:53 PM class jmetest.awt.swingui.HelloJMEDesktop start()
SEVERE: Exception in game loop
java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at org.lwjgl.Sys$1.run(Sys.java:72)
at java.security.AccessController.doPrivileged(Native Method)
at org.lwjgl.Sys.doLoadLibrary(Sys.java:65)
at org.lwjgl.Sys.loadLibrary(Sys.java:81)
at org.lwjgl.Sys.<clinit>(Sys.java:98)
at org.lwjgl.opengl.Display.<clinit>(Display.java:128)
at com.jme.system.lwjgl.LWJGLDisplaySystem.getValidDisplayMode(LWJGLDisplaySystem.java:351)
at com.jme.system.lwjgl.LWJGLDisplaySystem.selectMode(LWJGLDisplaySystem.java:494)
at com.jme.system.lwjgl.LWJGLDisplaySystem.initDisplay(LWJGLDisplaySystem.java:407)
at com.jme.system.lwjgl.LWJGLDisplaySystem.createWindow(LWJGLDisplaySystem.java:143)
at com.jme.app.BaseSimpleGame.initSystem(BaseSimpleGame.java:363)
at com.jme.app.BaseGame.start(BaseGame.java:67)
at jmetest.awt.swingui.HelloJMEDesktop.main(HelloJMEDesktop.java:131)
From the Eclipse Guide for jME in the Wiki:
Configure the jME Project
Step 10: Now right-click the jME project → Properties → Java Build Path → Libraries tab → Add Library
thanks. One correction though: i have to set the native library location for lwjgl.jar to jME/lib/lwjgl/native/win32
instead of just jME/lib/
thats because the wiki is for jme 1.0 and you are using jme 2.0
Hey!
I have the same error as divnoob, i followed the tutorial, added the user library to the build path, the libs are in the user library and the native library location is set. still i can't run run-testchooser from the ant-script.
I'm using eclipse 3.4 on ubuntu 8.10
Can anyone help?
Core-Dump created a great video tutorial for this:
http://www.jmonkeyengine.com/wiki/doku.php?id=video_tutorial_-_setting_up_eclipse_to_build_jme_2
Edit: Sorry, I didn’t see you said from the ant script. I believe it was broken a while ago, and now it was fixed, try checking out jME again.
Oh well i had checked it out today as a matter of fact
Thx for the video, by that i got it to run, well kinda, i can run the test from the vid, as long as i use lwjgl rendering, it does not work with JOGL, though, it can't find gluegen-rt in the library path, which IS in the library path, which confuses me kind of, any idea about that?