First Hurdle

Started by HarveyNick, June 01, 2005, 01:37:05

Previous topic - Next topic

HarveyNick

Having installed lwjgl I seem to be having a lot of trouble making it work. I'm using:

java -cp jar\lwjgl.jar:jar\lwjgl_test.jar:jar\lwjgl_util.jar:jar\lwjgl_fmod3.jar:jar\lwjgl_devil.jar: -Djava.library.path=native org.lwjgl.test.WindowCreationTest

from the root install directory and I always get:

Exception in thread "main" java.lang.NoClassDefFoundError: org/lwjgl/test/WindowCreationTest

I've checked in the jar file and it's definately there, so I'm not entirely sure whats going on. Can anyone help?  :oops:

Also, I think I'm going to start using an IDE to make my life a little easier with this, is NetBeans or Eclipse recomended?

Matzon

since you're using : as a path seperator I would expect you to use Linux or Mac OS X. But then you should use / as dir seperator ? and not \

As for IDE, Either Eclipse3.1M7 or recently released Netbeans 4.1 should work fine. I recommend trying both and forming your own opinion :)

HarveyNick

Okay, with that slightly embarrasing problem solved (thanks, by the way), I managed to run the test. But I get this:

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
Found 3 display modes
Problem retrieving mode with 640x480x16@60
Problem retrieving mode with 640x480x24@75
Problem retrieving mode with 640x480x32@75
Problem retrieving mode with 800x600x16@60
Problem retrieving mode with 800x600x24@75
Problem retrieving mode with 800x600x32@75
Problem retrieving mode with 1024x768x16@60
Problem retrieving mode with 1024x768x24@75
Problem retrieving mode with 1024x768x32@75
org.lwjgl.LWJGLException: Could not create a direct GLX context
       at org.lwjgl.opengl.LinuxContextImplementation.nCreate(Native Method)
       at org.lwjgl.opengl.LinuxContextImplementation.create(LinuxContextImplementation.java:50)
       at org.lwjgl.opengl.Context.<init>(Context.java:123)
       at org.lwjgl.opengl.Display.create(Display.java:630)
       at org.lwjgl.opengl.Display.create(Display.java:607)
       at org.lwjgl.opengl.Display.create(Display.java:591)
       at org.lwjgl.test.WindowCreationTest.initialize(WindowCreationTest.java:94)
       at org.lwjgl.test.WindowCreationTest.main(WindowCreationTest.java:286)


I've checked that I do have OpenGL in place and all the other tests which don't involve a GLX context work fine, so I'm a little stumped by this.

Can anyone help?

Matzon


HarveyNick

Thanks for your help guys, I found the problem. My 3D acceleration wasn't turned on...

:oops: