java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path

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$

at Method)

at org.lwjgl.Sys.doLoadLibrary(

at org.lwjgl.Sys.loadLibrary(

at org.lwjgl.Sys.<clinit>(

at org.lwjgl.opengl.Display.<clinit>(

at com.jme.system.lwjgl.LWJGLDisplaySystem.getValidDisplayMode(

at com.jme.system.lwjgl.LWJGLDisplaySystem.selectMode(

at com.jme.system.lwjgl.LWJGLDisplaySystem.initDisplay(

at com.jme.system.lwjgl.LWJGLDisplaySystem.createWindow(



at jmetest.awt.swingui.HelloJMEDesktop.main(

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


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:

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 :wink:

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?