Problem starting LWJGL

Hi there, I’m trying to make the test class of LWJGL working.

I launch it in this way:

java -cp lwjgl.jar;lwjgl_util.jar;lwjgl_test.jar; -Djava.library.path=c:\lwjgl org.lwjgl.test.WindowCreationTest

and result is:

The following keys are available:
ESCAPE: Exit test
ARROW Keys: Move window when in non-fullscreen mode
L: List selectable display modes
0-8: Selection of display modes
F: Toggle fullscreen
SHIFT-F: Toggle fullscreen with Display.destroy()/create() cycle
Exception in thread “main” 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.(Sys.java:64)
at org.lwjgl.opengl.Display.(Display.java:96)
at org.lwjgl.test.WindowCreationTest.initialize(WindowCreationTest.java:
82)
at org.lwjgl.test.WindowCreationTest.main(WindowCreationTest.java:286)

but, as you can see I’ve specified -Djava.library.path=c:\lwjgl (where all LWJGL jars are placed).

Where could it be the wrong thing?

thanks

quite good. I’ve solved using:

java -cp lwjgl.jar;lwjgl_devil.jar;lwjgl_fmod3.jar;lwjgl_test.jar;lwjgl_util.jar;. -Djava.library.path=C:\JBuilderX\jdk1.4\jre\lib\native org.lwjgl.test.WindowCreationTest

I’ve understood lately that -Djava.library.path has to point the directory which dll are in.

Don’t put your native LWJGL dlls into the JDK dir, you’ll cause yourself no end of pain in the long run. Use a seperate LWJGL dir and point it at that (usually internal to your project dir).

thanks for the tip.

Infact I’ve already started also a “cleaning mission” ::slight_smile: of my classpath, that is a mess, at the moment…