Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (522)
Games in Android Showcase (127)
games submitted by our members
Games in WIP (590)
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  
  getting LWJGL running on LINUX  (Read 1547 times)
0 Members and 1 Guest are viewing this topic.
Offline Slindsay

Senior Newbie




Java games rock!


« Posted 2005-01-25 14:13:03 »

Hi there,

I am trying to get LWJGL to run on a UNIX system, I am trying to run  java -cp lwjgl.jar:lwjgl_util.jar:lwjgl_test.jar: org.lwjgl.test.WindowCreationTest
from the instalation page on the site but when I try I keep getting the following error:

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

Can anyone explain why this is happening and what I can do to fix it?

Cheers,

Stephen
Offline Matzon

JGO Knight


Medals: 19
Projects: 1


I'm gonna wring your pants!


« Reply #1 - Posted 2005-01-25 15:07:10 »

uhm, are you standing in the dir with the jars ?

Offline chadwic

Innocent Bystander




Java games rock!


« Reply #2 - Posted 2005-01-25 18:51:46 »

im having the same problem only on windows, i just need to know where the .jar files should be extracted.

-chadwic
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Slindsay

Senior Newbie




Java games rock!


« Reply #3 - Posted 2005-01-26 11:41:37 »

When I try to run the Window test I get the error:
Exception in thread "main" java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path
       at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1491)
       at java.lang.Runtime.loadLibrary0(Runtime.java:788)
       at java.lang.System.loadLibrary(System.java:834)
       at org.lwjgl.Sys.initialize(Sys.java:129)
       at org.lwjgl.Sys.<clinit>(Sys.java:96)
       at org.lwjgl.opengl.Display.<clinit>(Display.java:93)
       at org.lwjgl.test.WindowCreationTest.main(WindowCreationTest.java:55)


When I try to set the classpath using the command:
-Djava.library.path=<path to lwjgl>
I get the error:
-Djava.library.path=<path to lwjgl>: No such file or directory.

I think the command I am using may be incorect but I am not sure.  Possibly I am setting the library path incorectly, is there anywhere specific that the initial download has to be extracted to?

If someone could explain what the commands in the instalation guide are ment to be doing I may be able to work out whetyher I am setting things up correctly.
Offline Orangy Tang

JGO Kernel


Medals: 56
Projects: 11


Monkey for a head


« Reply #4 - Posted 2005-01-26 11:59:52 »

That -DJava..whatever command should be an arg to the Java VM when you launch it, not an actual command you enter at the shell.

[ TriangularPixels.com - Play Growth Spurt, Rescue Squad and Snowman Village ] [ Rebirth - game resource library ]
Offline Slindsay

Senior Newbie




Java games rock!


« Reply #5 - Posted 2005-01-26 12:02:55 »

Quote
That -DJava..whatever command should be an arg to the Java VM when you launch it, not an actual command you enter at the shell.



Any idea how I would pass the argument in that case?  I am planning on finally using Eclipse to work on it so I wonder if you could tell me how to do it in Eclipse as well?
Offline Slindsay

Senior Newbie




Java games rock!


« Reply #6 - Posted 2005-01-26 12:11:05 »

Another question is what exactly is the runtime library?  Is it the stuff contained in the extracted org files?  Should the virtual machine link point directly to it or should it point to the file that contains it?
Offline Orangy Tang

JGO Kernel


Medals: 56
Projects: 11


Monkey for a head


« Reply #7 - Posted 2005-01-26 12:30:11 »

In Eclipse you need a run/debug config, (Project->Run I think). Once you've set up your main class etc. theres a box for VM args that you can just paste that into, dead easy.

Oh, and remember the -ea flag there as well, LWJGL does glGetError and a few other niceties if thats on.

[ TriangularPixels.com - Play Growth Spurt, Rescue Squad and Snowman Village ] [ Rebirth - game resource library ]
Offline Slindsay

Senior Newbie




Java games rock!


« Reply #8 - Posted 2005-01-26 12:38:11 »

Cool but where exactly do I want top point the VM to?  That seems to be the problem at the mometn, also in eclipse it doesnt seem to like the import statements I am trying out.
Offline elias

Senior Devvie





« Reply #9 - Posted 2005-01-26 12:55:42 »

Quote
In Eclipse you need a run/debug config, (Project->Run I think). Once you've set up your main class etc. theres a box for VM args that you can just paste that into, dead easy.

Oh, and remember the -ea flag there as well, LWJGL does glGetError and a few other niceties if thats on.


That was a long time ago Smiley LWJGL doesn't use assertions anymore, now that all checks are always enabled.

- elias

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Slindsay

Senior Newbie




Java games rock!


« Reply #10 - Posted 2005-01-26 13:39:07 »

Allright, now I have tried to get the Game thing working in eclipse but when I run it at the moment I get this error:

Exception in thread "main" java.lang.NoClassDefFoundError: Game

Anyone got any idea what this means?
Offline Matzon

JGO Knight


Medals: 19
Projects: 1


I'm gonna wring your pants!


« Reply #11 - Posted 2005-01-26 15:25:29 »

that it can't find any class called Game... and rightfully so - it should have somekind of package info too ?

Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

trollwarrior1 (29 views)
2014-11-22 12:13:56

xFryIx (71 views)
2014-11-13 12:34:49

digdugdiggy (50 views)
2014-11-12 21:11:50

digdugdiggy (44 views)
2014-11-12 21:10:15

digdugdiggy (38 views)
2014-11-12 21:09:33

kovacsa (62 views)
2014-11-07 19:57:14

TehJavaDev (67 views)
2014-11-03 22:04:50

BurntPizza (64 views)
2014-11-03 18:54:52

moogie (80 views)
2014-11-03 06:22:04

CopyableCougar4 (80 views)
2014-11-01 23:36:41
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
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!