Hi I would like to start programming with lwjgl but I have some problems. First I install the library with the Install Instruction then I test it with:
java -cp lwjgl.jar;lwjgl_util.jar;lwjgl_test.jar; org.lwjgl.test.WindowCreationTest
works perfect. But than I use this example and it doesnt work, i linked to all Library correct (lwjgl.jar etc.).
http://cvs.sourceforge.net/viewcvs.py/java-game-lib/LWJGL/src/java/org/lwjgl/test/input/KeyboardTest.java?rev=HEAD&content-type=text/vnd.viewcvs-markup
This is the error:
Exception in thread "main" java.lang.NoClassDefFoundError: org/lwjgl/test/input/KeyboardTest
All other Examples show me the same error whats wrong?
extracting 0.97 and running with:
java -cp jar\lwjgl.jar;jar\lwjgl_util.jar;jar\lwjgl_test.jar; -Djava.library.path=native org.lwjgl.test.input.KeyboardTest
works flawlessly
if you run it from within your IDE, you need to make sure that it has access to the jar files, and that lwjgl.dll is found (using library path)
Thank you very much. Now it works.