Hi all
I've downloaded the "gears.java" code from the demo section and tried to fun it.
i get the following error on my JCreator :
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:993)
at org.lwjgl.Sys$1.run(Sys.java:75)
at java.security.AccessController.doPrivileged(Native Method)
at org.lwjgl.Sys.doLoadLibrary(Sys.java:68)
at org.lwjgl.Sys.loadLibrary(Sys.java:84)
at org.lwjgl.Sys.<clinit>(Sys.java:101)
at org.lwjgl.opengl.Display.<clinit>(Display.java:108)
at org.lwjgl.test.opengl.Gears.init(Gears.java:156)
at org.lwjgl.test.opengl.Gears.execute(Gears.java:82)
at org.lwjgl.test.opengl.Gears.main(Gears.java:73)
What can it be? I installed the lwjgl libraries according to their instrustions...
10x.
you need to add -Djava.library.path=<path\to\native\libs>
IM sorry, but im just way too newbie to understand what u just wrote... can u elaborate?
Im using JCreator, and i just dont know nothing about binding/linking libraries etc...
thanks !
I solved it by copying all the dll that comes with the lwjgl-1.0-rc1.zip (4 dlls total in the "C:\Program Files\Java\lwjgl-1.0-rc1\native\win32" directory) to the c:\windows\system32 directory, and it worked.
eurika.
while that might work - its a short term solution. Whenever you upgrade you will need to replace those files.
In JCreator, locate something that allows you to pass VM arguments, and then add -Djava.library.path="C:\Program Files\Java\lwjgl-1.0-rc1\native\win32"
Thanks ! :)