java unsatisfiedlinkerror on linux

Started by nomore, August 08, 2003, 17:11:05

Previous topic - Next topic

nomore

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

Matzon

did you compile both the native code and java ?

nomore

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).

Matzon

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...

nomore

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