lwjgl test instructions broken linux

Started by CowBot, December 11, 2004, 17:43:32

Previous topic - Next topic

CowBot

I feel the install/test instructions are in error.

http://lwjgl.org/installation.php

java -cp lwjgl.jar;lwjgl_test.jar; org.lwjgl.test.WindowCreationTest

Such a command invocation can not work in linux because the ";" is a command seperator character.  Entering that string at the bash prompt attempts to EXECUTE java -cp lwjgl.jar and upon java program exit,  EXECUTE lwjgl_test.jar and then org.lwjgl.test.WindowCreationTest.

I doubt this was your intent.

The correct invocation as far as i can tell is as follows:
java -cp lwjgl.jar\;lwjgl_test.jar\; org.lwjgl.test.WindowCreationTest

However this leads to the following error:
.................................................
java -cp lwjgl.jar;lwjgl_test.jar; org.lwjgl.test.WindowCreationTest

scuttle:/usr/local/lib/lwjgl$ java -cp lwjgl.jar\;lwjgl_test.jar\; org.lwjgl.test.WindowCreationTest
Exception in thread "main" java.lang.NoClassDefFoundError: org/lwjgl/test/WindowCreationTest

--------------------------------------------
Here is the lwjgl directory
scuttle:/usr/local/lib/lwjgl$ ls -n
total 2000
-rwxrwxrwx  1 1000 1000     619 Oct 26 22:08 CREDITS
-rwxrwxrwx  1 1000 1000    1661 Oct 26 22:08 LICENSE
-rwxrwxrwx  1 1000 1000    2484 Oct 26 22:08 README
-rwxrwxrwx  1 1000 1000   91396 Oct 26 22:08 liblwjgl-fmod3.so
-rwxrwxrwx  1 1000 1000  229832 Oct 26 22:08 liblwjgl.so
-rwxrwxrwx  1 1000 1000  223048 Oct 26 22:08 libopenal.so
-rwxrwxrwx  1 1000 1000  165063 Oct 26 22:08 lwjgl.jar
-rwxrwxrwx  1 1000 1000   22417 Oct 26 22:08 lwjgl_fmod3.jar
-rwxrwxrwx  1 1000 1000 1067104 Oct 26 22:08 lwjgl_media.jar
-rwxrwxrwx  1 1000 1000  115052 Oct 26 22:08 lwjgl_test.jar
-rwxrwxrwx  1 1000 1000   71884 Oct 26 22:08 lwjgl_util.jar

Would someone please kindly tell me what i am doing wrong.  

I also ask that the devs PLEASE INDICATE WHEN YOUR INSTRUCTIONS ARE OS-SPECIFIC, and add a linux howto.

elias

On linux, the path separator is ":", so use

java -cp lwjgl.jar:lwjgl_test.jar org.lwjgl.test.opengl.WindowCreationTest

- elias

CowBot

God damn it

why doesn't the jre/j2sdk installer put the f*cking files in the right dir and set the god-damn $CLASSPATH?

I manually edited mine and here it is:

.:/usr/local/j2sdk/lib/tools.jar:/usr/local/j2re/lib/rt.jar:/usr/local/lib/lwjgl.jar

would someone paste a working $CLASSPATH on linux so i can see what f*cking files i need to include in there?

jesus.
sorry for my language

nihon-jin

filip@mireille  $ env | grep CLASSPATH
CLASSPATH=.


you don't need anything in classpath >.> -cp sets it for each program, and core stuff is included automatically anyways

also, i suggest you to learn to be more polite, because if you continue in a way you started, i doubt you'll get any further help from ppl in here :/