LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: nomore on August 08, 2003, 17:11:05

Title: java unsatisfiedlinkerror on linux
Post by: nomore on August 08, 2003, 17:11:05
Hi there,

I've compiled LWJGL from CVS yesterday. Everything went fine.... java told me that it can't find lwjgl.o.. ok....  so I've used this flag to get rid of it:

-Djava.library.path=/usr/local/lib

but now I'm getting the following error... which I can't  understand:

Exception in thread "main" java.lang.UnsatisfiedLinkError: nGetNULLValue
at org.lwjgl.Sys.nGetNULLValue(Native Method)
at org.lwjgl.Sys.<clinit>(Unknown Source)
at org.lwjgl.openal.BaseAL.initialize(Unknown Source)
at org.lwjgl.openal.BaseAL.<clinit>(Unknown Source)
at Game.<init>(Game.java:14)
at Game.main(Game.java:7)


I'm just using this small openal code:


import org.lwjgl.openal.AL;

public class Game {
   
public static void main(String[] arguments)
  {
  Game bla = new Game();
  }
  /**
* Creates an instance of PlayTest
*/
  public Game() {
try {
AL.create();
} catch (Exception e) {
  e.printStackTrace();
}
  }
}


So, any help would be real great. Btw, I'm using Mandrake 9.1 so I can't use the RH9-RPM.

Bye, Alex
Title: java unsatisfiedlinkerror on linux
Post by: Matzon on August 08, 2003, 21:34:55
did you compile both the native code and java ?
Title: java unsatisfiedlinkerror on linux
Post by: nomore on August 09, 2003, 07:35:45
Hi,

yes I've got the native library in /usr/local/lib/liblwjgl.so and I've got also the jar-file(built via ant).
Title: java unsatisfiedlinkerror on linux
Post by: Matzon on August 09, 2003, 08:07:38
Somehow you have incompabilities - did you compile *both* the native and java?

Exception in thread "main" java.lang.UnsatisfiedLinkError: nGetNULLValue
  at org.lwjgl.Sys.nGetNULLValue(Native Method)

it is looking for Sys.nGetNULLValue, which have recently been removed...
Title: java unsatisfiedlinkerror on linux
Post by: nomore on August 09, 2003, 08:57:29
Well... hmm.... the error is away.. in fact I was using another jar-file cause I've thought that another error came from my jar.... so... I've forgotten to change the file... :oops:

stupid error... anyway, big thanx to you !  :P