Installation test for LWJGL failed

Started by Lithium2142, December 03, 2010, 05:11:49

Previous topic - Next topic

Lithium2142

Anyone know why the WindowCreationTest failed after downloading files?

C:\Users\Shadi\Downloads\lwjgl-2.6\lwjgl-2.6>java -cp .;res;jar\lwjgl.jar;jar\lw
jgl_test.jar;jar\lwjgl_util.jar;jar\lwjgl_fmod3.jar;jar\lwjgl_devil.jar;jar\jinp
ut.jar; -Djava.library.path=/home/lwjgluser/lwjgl/ org.lwjgl.test.WindowCreation
Test
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
Exception in thread "main" java.lang.UnsatisfiedLinkError: no lwjgl in java.libr
ary.path
        at java.lang.ClassLoader.loadLibrary(Unknown Source)
        at java.lang.Runtime.loadLibrary0(Unknown Source)
        at java.lang.System.loadLibrary(Unknown Source)
        at org.lwjgl.Sys$1.run(Sys.java:73)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.lwjgl.Sys.doLoadLibrary(Sys.java:66)
        at org.lwjgl.Sys.loadLibrary(Sys.java:82)
        at org.lwjgl.Sys.<clinit>(Sys.java:99)
        at org.lwjgl.opengl.Display.<clinit>(Display.java:130)
        at org.lwjgl.test.WindowCreationTest.initialize(WindowCreationTest.java:
82)
        at org.lwjgl.test.WindowCreationTest.main(WindowCreationTest.java:286)

C:\Users\Shadi\Downloads\lwjgl-2.6\lwjgl-2.6>


It seems to load with displaying 'the following keys are available' but then fails.  Any ideas on whats up and how to fix?  I'm sort of inexperienced with java to an extent where I know whats going on here... Although I have made a 3D Pool game in Java3D as a solo school project... that was a pain (got an A though :)).

It would really help if you could reply :)  Also
QuoteHaving installed LWJGL on your platform of choice, fire up Eclipse.
-Thats written in http://lwjgl.org/installation.php - Does the Command prompt line install it?  Just making sure I didn't miss something! Thanks.

jediTofu

That web page is very out of date.  The people that work on LWJGL are busy people, so it's understandable :P

This should work:
java -cp .;res;jar\lwjgl.jar;jar\lwjgl_test.jar;jar\lwjgl_util.jar;jar\jinput.jar; -Djava.library.path=./native/windows org.lwjgl.test.opengl.FullScreenWindowedTest

Check out docs/README in your lwjgl-2.6 folder.

This doesn't install the files into your IDE.  You'll have to manually add the Jars, Javadoc zip, and Source zip into its own little library in your IDE.  Then add this line to your JVM args:
-Djava.library.path=C:\Users\Shadi\Downloads\lwjgl-2.6\lwjgl-2.6\native\windows

LWJGL programs are typically deployed as Web Start Apps or Applets.

Further resources:
http://lwjgl.org/wiki/index.php?title=Main_Page
http://lwjgl.org/demos.php
cool story, bro

kappa

here is a more up to date tutorial on how to setup LWJGL with eclipse.

Your error suggests that you have not setup the lwjgl native files correctly in the IDE.

Lithium2142

Thanks everyone! I can't believe I didn't read the Readme file...  Noob mistake :).  Everything works fine - even in eclipse!  Now.... To think of a creative project to do... :P

-Lith