Installing

Befor I get flamed, I did do a search, on variouse forums and sites.

I have LWJGL in c:\lwjgl-win32-0.98\

When I go to that directory and do

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

I get this error


C:\lwjgl-win32-0.98>java -cp lwjgl.jar;lwjgl_test.jar;lwjgl_util.jar; org.lwjgl.
test.WindowCreationTest
Exception in thread "main" java.lang.NoClassDefFoundError: org/lwjgl/test/Window
CreationTest

C:\lwjgl-win32-0.98>pause
Press any key to continue . . .

So I figured I need to set the class path. So I enter

java -cp c:\lwjgl-win32-0.98\jar\lwjgl.jar

And all it returns is how to use the java command. Any ideas?

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 org.lwjgl.test.WindowCreationTest

Aha! I found the problem. When I copy and pasted to took your command as 2 seperate commands. Ok it works. Thankyou!

EDIT: Okay, I copy and paste the sourcecode from oen of the demos on LWJGL’s demo page on the website. The “PlayTest” source. So I download it, and when I compile it, I get this error


C:\lwjgl-win32-0.98>javac -cp .;res;jar\lwjgl.jar;jar\lwjgl_test.jar;jar\lwjgl_u
til.jar PlayTest.java
PlayTest.java:1: 'class' or 'interface' expected
*
^
PlayTest.java:16: unclosed character literal
 * * Neither the name of 'LWJGL' nor the names of
                         ^
PlayTest.java:16: unclosed character literal
 * * Neither the name of 'LWJGL' nor the names of
                               ^
PlayTest.java:34: 'class' or 'interface' expected
import java.io.BufferedInputStream;
^
PlayTest.java:35: 'class' or 'interface' expected
import java.io.ByteArrayOutputStream;
^
PlayTest.java:36: 'class' or 'interface' expected
import java.nio.ByteBuffer;
^
PlayTest.java:37: 'class' or 'interface' expected
import java.nio.ByteOrder;
^
PlayTest.java:38: 'class' or 'interface' expected
import java.nio.IntBuffer;
^
PlayTest.java:40: 'class' or 'interface' expected
import org.lwjgl.BufferUtils;
^
PlayTest.java:41: 'class' or 'interface' expected
import org.lwjgl.openal.AL10;
^
PlayTest.java:42: 'class' or 'interface' expected
import org.lwjgl.util.WaveData;
^
11 errors

C:\lwjgl-win32-0.98>

EDIT:EDIT: Ok so I try a OPENGL test this time, the WindowedFullscreen test one. It compiles fine but I get this error.