problem with JNI
1 posts in topic
Flat View  Flat View

Posted By:   yashar_baradaran
Posted On:   Wednesday, September 11, 2002 01:28 PM

Hi ,

I need to use Java native interface in my application.I have already developed such application and they work good.But now I have a strange problem :

I generate the headers and .... as usual.The library (DLL file ) gets loaded correctly , but the method doesnt execute when invoked and returns "unsatisfiedLinkError" !!
Again I emphasis that the DLL loads correctly but the native method inside doesnt run.

I use JDK 1.4 and win2000 platform.

Re: problem with JNI

Posted By:   Rob_Taft  
Posted On:   Thursday, September 12, 2002 05:21 AM

Does it happen to be this exact error? (minus the filenames of course).

Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/fdt2/jni/example4/libmyRenderingLib.so: /home/fdt2/jni/example4/libmyRenderingLib.so: undefined symbol: JAWT_GetAWT
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1414)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1338)
at java.lang.Runtime.loadLibrary0(Runtime.java:744)
at java.lang.System.loadLibrary(System.java:815)
at MyCanvas.(MyCanvas.java:6)

I'm getting this when painting in linux
About | Sitemap | Contact