LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: Counterfeit on May 20, 2005, 09:18:15

Title: Can´t start
Post by: Counterfeit on May 20, 2005, 09:18:15
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?
Title: Can´t start
Post by: Matzon on May 20, 2005, 09:28:53
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)
Title: Can´t start
Post by: Counterfeit on May 20, 2005, 09:46:13
Thank you very much. Now it works.