Hi guys.
I just tried to start with LWJGL and i did a tutorial. This one: http://gpwiki.org/index.php/OpenGL:Tutorials:Java:LWJGL:Introduction (http://gpwiki.org/index.php/OpenGL:Tutorials:Java:LWJGL:Introduction)
The problem comes when i try to start it. It throws an exception:
Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class org.lwjgl.opengl.Display
at main.Main.cleanup(Main.java:107)
at main.Main.main(Main.java:42)
Before i installed LWJGL by using the java -cp command like told on the homepage and i imported the lwjgl.jar in eclipse
In the VM-Arguments i added: -Djava.library.path=\lwjgl-2.6\native\windows (i just extracted all the stuff into my project folder)
I tried google before, but didn't find anything useful, so i hope someone around here can help.
Thanks in advance,
raziel321
The java.library.path looks wrong. Did you mean to put a dot at the beginning?
-Djava.library.path=.\lwjgl-2.6\native\windows
If that doesn't work, put the full path (i.e., C:\...\...). If there are spaces, put quotes: -Djava.library.path="C:\My Documents\...\native\windows"
Also, see this post: http://lwjgl.org/forum/index.php/topic,3600.0.html (http://lwjgl.org/forum/index.php/topic,3600.0.html)
It was the dot. Thanks :)