New to LWJGL, need help

Started by Warlax, March 31, 2007, 20:05:17

Previous topic - Next topic

Warlax

Hi all...
I am new to LWJGL...
I'm running into trouble using Eclipse under Windows XP, I'm trying to incorporate the lib so that I may run one of the tutorials:
http://lwjgl.org/wiki/doku.php/lwjgl/tutorials/opengl/basicopengl

My steps:
1. dowloaded LWJGL 1.0
2. extracted it to a folder named lwjgl
3. tested it using
java -cp .;res;jar\lwjgl.jar;jar\lwjgl_test.jar;jar\lwjgl_util.jar;jar\lwjgl_fmod3.jar;jar\lwjgl_devil.jar;jar\jinput.jar;
    -Djava.library.path=native\win32 org.lwjgl.test.WindowCreationTest

I got:

Found 18 display modes
Problem retrieving mode with 640x480x24@-1
Problem retrieving mode with 800x600x24@-1
Problem retrieving mode with 1024x768x24@-1

maybe this is the problem?!
...and a window that is fading in and out

4. started a new project in Eclipse
5. copied and pasted all the code from the tutorial...
6. went to project > properties > libraries tab > add external JARs...
7. selected ALL the jars from lwjgl\jar
8. tried to run the prog...

got this error:
Exception in thread "main" java.lang.NoClassDefFoundError
   at Game.cleanup(Game.java:105)
   at Game.main(Game.java:40)

line Game.java:105 reads:
    Display.destroy();

Matzon

Your test is fine, this is the expected error.
as for your classpath error, it seems that it isn't locating the Display class in lwjgl - one of the core classes. It should be in lwjgl.jar.