LWJGL
June 19, 2013, 06:20:54 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: LWJGL is now using GitHub
 
   Home   Help Search Login Register  



Pages: [1]
  Print  
Author Topic: LWJGL in NetBeans (Leopard)  (Read 7094 times)
jomaveger
Newbie
*
Posts: 3


« on: December 22, 2008, 03:07:34 »

Hello!

I'm having a problem in order to get LWJGL working in Leopard. I am using NetBeans 6.5 and LWJGL 2.0.1. I've created a library, added all the jars and put the vm parameter like that:

-Djava.library.path=/Usuarios/jomaveger/Projects/Libraries/LWJGL2.0.1/native/macosx/liblwjgl.jnilib:/Usuarios/jomaveger/Projects/Libraries/LWJGL2.0.1/native/macosx/libjinput-osx.jnilib:/Usuarios/jomaveger/Projects/Libraries/LWJGL2.0.1/native/macosx/openal.dylib

I always get the same error message:

Exception in thread "main" java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1753)
        at java.lang.Runtime.loadLibrary0(Runtime.java:823)
        at java.lang.System.loadLibrary(System.java:1030)
        at org.lwjgl.Sys$1.run(Sys.java:72)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.lwjgl.Sys.doLoadLibrary(Sys.java:65)
        at org.lwjgl.Sys.loadLibrary(Sys.java:81)
        at org.lwjgl.Sys.<clinit>(Sys.java:98)
        at org.lwjgl.opengl.Display.<clinit>(Display.java:129)
        at org.jomaveger.relax.VentanaDeJuego.<init>(VentanaDeJuego.java:25)
        at org.jomaveger.relax.Main.main(Main.java:19)
Java Result: 1

Does anybody know what happens?

Thanks in advance.

Regards and Merry Christmas!
Logged
jomaveger
Newbie
*
Posts: 3


« Reply #1 on: December 22, 2008, 03:27:51 »

Sorry, it works just now. I needed to put the native libraries in a system directory.

Thank you!
Logged
Matzon
Administrator
Demigod
*****
Posts: 2239



« Reply #2 on: December 22, 2008, 03:42:03 »

no! - never put them in system libraries - EVER. use: -Djava.library.path=/Usuarios/jomaveger/Projects/Libraries/LWJGL2.0.1/native/macosx/ <--- notice, just the dir - not the specific file
Logged

jomaveger
Newbie
*
Posts: 3


« Reply #3 on: December 22, 2008, 04:10:32 »

Hello Matzon.

I've deleted the files from the system directory and I've done what you said. Thanks for your suggestion but I get the same error message.

Regards.
Logged
broumbroum
Prolific Timewaster
****
Posts: 324



WWW
« Reply #4 on: December 31, 2008, 14:15:53 »

-J-Djava.library.path=/Usuarios/jomaveger/Projects/Libraries/LWJGL2.0.1/native/macosx/ should work
Logged

Sf3JSwing project, code repo (Apache License) -  http://www.sourceforge.net/p/sf3jswing
Sf3jswing Project Forum - http://apps.sourceforge.net/phpbb/sf3jswing/
hucky
Newbie
*
Posts: 2


« Reply #5 on: March 22, 2009, 05:41:06 »

i have exactly the same problem on Leopard/Netbeans 6.5

Unrecognized option: -J-Djavac.library.path=/Users/hucky/java/Jme/lib/lwjgl/native/macosx/
Could not create the Java virtual machine.
Java Result: 1

im using jME 2 -> http://www.jmonkeyengine.com, LWJGL is there included

altrough it would be easier to put them in a systemdirectory?  Undecided
Logged
Ciardhubh
Talks Too Much
***
Posts: 159


« Reply #6 on: March 22, 2009, 07:24:00 »

Unrecognized option: -J-Djavac.library.path=/Users/hucky/java/Jme/lib/lwjgl/native/macosx/

It should be: -Djava.library.path=...

No -J, no javaC.
Logged
hucky
Newbie
*
Posts: 2


« Reply #7 on: March 23, 2009, 02:18:44 »

thank you! this little "c" costed me hours!

but now it runs!  Grin
Logged
Pages: [1]
  Print  
 
Jump to:  

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