LWJGL
May 17, 2012, 02:26:52 *
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: installation & test program problems - linux  (Read 6413 times)
username
Guest
« on: July 25, 2005, 12:16:10 »

I am trying to install LWJGL under linux kernel 2.6.11, distro Fedora Core 3, and java sdk 1.5.  I have extracted the zip version of LWJGL in the directory /home/username/javaprog/

After that I went into the lwjgl directory and jar, so my final working directory is:
/home/username/javaprog/lwjgl/jar

From here I run the test command and my shell outputs this:

Code:

[username@localhost jar]$ java -cp lwjgl.jar:lwjgl_util.jar:lwjgl_test.jar:lwjgl_devil.jar:lwjgl_fmod3.jar -Djava.library.path=/home/tmcdemus/javaprog/lwjgl/jar/lwjgl.jar 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
Exception in thread "main" java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
        at java.lang.Runtime.loadLibrary0(Runtime.java:822)
        at java.lang.System.loadLibrary(System.java:992)
        at org.lwjgl.Sys.<clinit>(Sys.java:61)
        at org.lwjgl.opengl.Display.<clinit>(Display.java:96)
        at org.lwjgl.test.WindowCreationTest.initialize(WindowCreationTest.java:82)
        at org.lwjgl.test.WindowCreationTest.main(WindowCreationTest.java:286)


Any idea what the problem is?
Logged
CaseyB
Talks Too Much
***
Posts: 118



« Reply #1 on: July 25, 2005, 12:30:05 »

Did you install the Linux Native Libraries?  They came in the Zip file, and are .so files.  They need to be in your Java Path.  If that's not the problem, then I am at a loss, sorry!

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



« Reply #2 on: July 25, 2005, 12:38:59 »

if you're standing in the jar folder, do this:
Code:
java -cp lwjgl.jar:lwjgl_util.jar:lwjgl_test.jar:lwjgl_devil.jar:lwjgl_fmod3.jar -Djava.library.path=../native
Logged

http://certusgames.com (Free Online Multiplayer Java Games)
http://lwjgl.org (OpenGL/OpenAL for Java)
username
Guest
« Reply #3 on: July 25, 2005, 13:11:28 »

Thanks for the quick reply guys.  The problem was with the .so files, they weren't included with the path.  I copied the .so files of .../lwjgl/native to:   /usr/local/jdk1.5.0_04/jre/lib/i386/
aka my jre path.
This makes sense now but it wasn't obvious to me from the install instructions that I had to set up another path (than the .jar file one) to talk to the hardware.  Thanks again.
Logged
CaseyB
Talks Too Much
***
Posts: 118



« Reply #4 on: July 25, 2005, 13:14:51 »

No Problem!

I had the same trouble with the first OpenGL Java library I installed, it took me forever to find the trouble!
Logged
Matzon
Administrator
Demigod
*****
Posts: 2177



« Reply #5 on: July 25, 2005, 14:19:45 »

NOO
dont EVER copy them into the JRE - ALWAYS use the -Djava.library.path

it *will* make you go nuts later when you upgrade - just - dont - do - it
Logged

http://certusgames.com (Free Online Multiplayer Java Games)
http://lwjgl.org (OpenGL/OpenAL for Java)
Anonymous
Guest
« Reply #6 on: July 26, 2005, 12:47:49 »

I ended up fixing that but thanks for the heads up!
Logged
Anto
Guest
« Reply #7 on: January 29, 2006, 13:18:36 »

look i hv a problem.. using eclipse ..
when i run my aplication :

Quote
Exception in thread "main" java.lang.NoClassDefFoundError: org.lwjgl.opengl.Display
   at java.lang.Class.initializeClass() (/usr/lib/libgcj.so.6.0.0)
   at Limpia.cleanup() (Unknown Source)
   at Game.main(java.lang.String[]) (Unknown Source)
   at gnu.java.lang.MainThread.call_main() (/usr/lib/libgcj.so.6.0.0)
   at gnu.java.lang.MainThread.run() (/usr/lib/libgcj.so.6.0.0)


i define the argument in the eclipse . (run>arguments>vm argument)
"-Djava.library.path=/home/xxxx/lwjgl-linux-0.99/native/ "
and import the .jars files to ..

Sad what its missing me.. :oops

thank
Logged
Timkog
Newbie
*
Posts: 1


WWW
« Reply #8 on: August 12, 2006, 12:13:51 »

To early.
Logged

url=http://a-six.10storage.net/pack-in-a-month.html]A Six Pack In A Month[/url]
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!