lwjgl and eclipse

Started by wasteland, August 11, 2003, 01:47:42

Previous topic - Next topic

wasteland

Ok, newbie issue... I've added the lwjgl.jar to the project (libraries tab) and have added the lwjgl.dll to my path (via System in Windows Control Panel). When I run this:
public class temp {

  public static void main(String[] args) {
     System.out.println(System.getProperty("java.library.path"));
  }
}

I get this, so apparently things are OK:
C:\Program Files\Java\j2re1.4.2\bin;.;C:\WINNT\system32;
C:\WINNT;.;C:\lwjgl\lwjgl.dll;C:\WINNT\system32;C:\WINNT;
C:\WINNT\System32\Wbem;%JAVA_HOME\bin%;
C:\j2sdkee1.3.1\bin;C:\apache-ant-1.5.3-1\bin

but I still get this... (for all tests)

java.lang.UnsatisfiedLinkError: no lwjgl in java.library.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.initialize(Unknown Source)
   at org.lwjgl.Sys.<clinit>(Unknown Source)
   at org.lwjgl.openal.BaseAL.initialize(Unknown Source)
   at org.lwjgl.openal.BaseAL.<clinit>(Unknown Source)
   at org.lwjgl.test.openal.BasicTest.<init>(BasicTest.java:56)
   at org.lwjgl.test.openal.ALTest.<init>(ALTest.java:75)
   at org.lwjgl.test.openal.ALTest.main(ALTest.java:3044)
Exception in thread "main"

Matzon

lwjgl.library.path is different from the system path!

when executing your game, either have lwjgl.dll in the root folder, ir point it out using the java option: -Djava.library.path=<path\to\folder>

wasteland