Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (741)
Games in Android Showcase (225)
games submitted by our members
Games in WIP (823)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Installing  (Read 1276 times)
0 Members and 1 Guest are viewing this topic.
Offline Fhqwhagds

Junior Newbie





« Posted 2005-09-13 04:53:57 »

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
1  
2  
java -cp lwjgl.jar;lwjgl_test.jar;lwjgl_util.jar; org.lwjgl.test.WindowCreationTest
pause


I get this error
1  
2  
3  
4  
5  
6  
7  
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
1  
java -cp c:\lwjgl-win32-0.98\jar\lwjgl.jar


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

JGO Knight


Medals: 19
Projects: 1


I'm gonna wring your pants!


« Reply #1 - Posted 2005-09-13 05:27:50 »

1  
2  
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

Offline Fhqwhagds

Junior Newbie





« Reply #2 - Posted 2005-09-13 06:14:51 »

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

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
31  
32  
33  
34  
35  
36  
37  
38  
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.

Quote

C:\lwjgl-win32-0.98>java FullScreenWindowedTest
Exception in thread "main" java.lang.NoClassDefFoundError: FullScreenWindowedTes
t (wrong name: org/lwjgl/test/opengl/FullScreenWindowedTest)
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at java.security.SecureClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.access$100(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)

C:\lwjgl-win32-0.98>
Pages: [1]
  ignore  |  Print  
 
 

 
xxMrPHDxx (18 views)
2017-11-21 16:21:00

xxMrPHDxx (11 views)
2017-11-21 16:14:31

xxMrPHDxx (14 views)
2017-11-21 16:10:57

Ecumene (114 views)
2017-09-30 02:57:34

theagentd (148 views)
2017-09-26 18:23:31

cybrmynd (248 views)
2017-08-02 12:28:51

cybrmynd (247 views)
2017-08-02 12:19:43

cybrmynd (244 views)
2017-08-02 12:18:09

Sralse (258 views)
2017-07-25 17:13:48

Archive (878 views)
2017-04-27 17:45:51
List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05

SF/X Libraries
by SkyAphid
2017-03-02 06:38:56

SF/X Libraries
by SkyAphid
2017-03-02 06:38:32

SF/X Libraries
by SkyAphid
2017-03-02 06:38:05

SF/X Libraries
by SkyAphid
2017-03-02 06:37:51
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!