LWJGL
May 20, 2012, 23:47:16 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: LWJGL 2.8.3 released!
 
   Home   Help Search Login Register  



Pages: [1]
  Print  
Author Topic: A little correction on http://lwjgl.org/installation.php  (Read 5963 times)
monn
Newbie
*
Posts: 1


WWW
« on: August 23, 2006, 03:10:36 »

Hi, this is what I've found in http://lwjgl.org/installation.php :

###
Test LWJGL by opening a command prompt, and navigating to the folder where the archive was extracted. Once navigated, issue the following command:

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
###

I (like some other users) found UnsatisfiedLinkError when issuing above command. It should be

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

on Windows, or

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

on Linux, or

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

on OSX.

Thank you.
Logged

eautiful lines of code aren't not written, they are debugged.
Shaun
Newbie
*
Posts: 1


« Reply #1 on: September 11, 2006, 16:42:19 »

You are right, there is something definitely wrong with their installation part. Once I tried yours I immediately got a Java window..

Thanks! :wink:
Logged
Matzon
Administrator
Demigod
*****
Posts: 2177



« Reply #2 on: September 11, 2006, 22:27:36 »

the installation page was updated some time ago, following the original post - so you should have been able to use the installation page?
Logged

http://certusgames.com (Free Online Multiplayer Java Games)
http://lwjgl.org (OpenGL/OpenAL for Java)
EverMan688
Newbie
*
Posts: 2


« Reply #3 on: November 24, 2007, 21:44:59 »

I tried this code and I am getting an error message Angry.  I cut and pasted it into the cmd window.

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

This is the error I get

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

I'm running windows Vista, just installed Java updates, OpenGl, and I have the latest drivers for my video card
Graphics Media Accelerator 900.

I'm going back and trying version 1.2 to see if that will make a difference.  Also, I lumped everything together in one folder the first time I extracted everything.  This time I am putting everything into sub-folders with the appropriate names as per the zip file ext's.  Hopefully this will make the difference  Roll Eyes

Logged
Matzon
Administrator
Demigod
*****
Posts: 2177



« Reply #4 on: November 25, 2007, 05:42:41 »

seems to work fine here...

Quote
C:\lwjgl-1.1.3>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/win32 org.lwjgl.test.WindowCreationTest
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
Found 30 display modes
Problem retrieving mode with 640x480x24@-1
Problem retrieving mode with 800x600x24@-1
Problem retrieving mode with 1024x768x24@-1
Logged

http://certusgames.com (Free Online Multiplayer Java Games)
http://lwjgl.org (OpenGL/OpenAL for Java)
lobsterman
Newbie
*
Posts: 18



« Reply #5 on: May 15, 2008, 04:26:11 »

here is an additional suggestion for the installation.php file part for macs

when i copied and pasted

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

into the terminal. i get

-bash: -Djava.library.path=native/macosx: No such file or directory

it appears that a carriage return is present in front of -Djava... copying the command from the page into a text editor first, removing the new line in front of -Djava, then copying that into the terminal finally works. it would make life a lot easier for newbies like me, if that new line would be removed from the page. ciao,

Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines
SMFAds for Free Forums
Valid XHTML 1.0! Valid CSS!