D
Dominik Kaspar
i have seen a few older posts about the same or similar questions. but
they were either misunderstood, badly answered or i'm too dumb to
understand them. so i try to ask it again:
i have studied the online tutorial on
http://java.sun.com/docs/books/tutorial/native1.1/stepbystep/index.html
and tried out the code. in step 6 the java.lang.UnsatisfiedLinkError
is mentioned and it happended as well in my program:
java.lang.UnsatisfiedLinkError: no hello in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1403)
at java.lang.Runtime.loadLibrary0(Runtime.java:788)
at java.lang.System.loadLibrary(System.java:832)
at jni_test.HelloWorld.<clinit>(HelloWorld.java:16)
Exception in thread "main"
But this is NOT my problem. I was able to fix that. Now the native
code seems to be found but there's this other error appearing:
java.lang.UnsatisfiedLinkError: displayHelloWorld
at jni_test.HelloWorld.displayHelloWorld(Native Method)
at jni_test.HelloWorld.main(HelloWorld.java:20)
Exception in thread "main"
Can anybody please help me explain this behaviour?
What did I do wrong?!
Thanks a lot in advance
Dominik
they were either misunderstood, badly answered or i'm too dumb to
understand them. so i try to ask it again:
i have studied the online tutorial on
http://java.sun.com/docs/books/tutorial/native1.1/stepbystep/index.html
and tried out the code. in step 6 the java.lang.UnsatisfiedLinkError
is mentioned and it happended as well in my program:
java.lang.UnsatisfiedLinkError: no hello in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1403)
at java.lang.Runtime.loadLibrary0(Runtime.java:788)
at java.lang.System.loadLibrary(System.java:832)
at jni_test.HelloWorld.<clinit>(HelloWorld.java:16)
Exception in thread "main"
But this is NOT my problem. I was able to fix that. Now the native
code seems to be found but there's this other error appearing:
java.lang.UnsatisfiedLinkError: displayHelloWorld
at jni_test.HelloWorld.displayHelloWorld(Native Method)
at jni_test.HelloWorld.main(HelloWorld.java:20)
Exception in thread "main"
Can anybody please help me explain this behaviour?
What did I do wrong?!
Thanks a lot in advance
Dominik