Re: java.lang.UnsatisfiedLinkError - native method
- From: Gordon Beaton <n.o.t@xxxxxxxxx>
- Date: 13 Nov 2007 14:19:05 GMT
On Tue, 13 Nov 2007 06:05:52 -0800, andrej.frelih@xxxxxxxxx wrote:
Exception in thread "main" java.lang.UnsatisfiedLinkError: helloworld
[...]
my NEWLY added helloworld function contains this "__Fv" at the end
of the name that is why i think it cannot be found by the java
class.
How (exactly) do you compile the native library? Are you using a C
compiler, or a C++ compiler?
Is the failing method declared with extern "C"? It should be, and it
will be if you exactly obeyed the declaration that javah provided for
you in the generated header file. If the signature of your
implementation differs from that in the header file, the extern "C"
javah provided is no longer helping you.
/gordon
--
.
- Follow-Ups:
- Re: java.lang.UnsatisfiedLinkError - native method
- From: andrej . frelih
- Re: java.lang.UnsatisfiedLinkError - native method
- References:
- java.lang.UnsatisfiedLinkError - native method
- From: andrej . frelih
- java.lang.UnsatisfiedLinkError - native method
- Prev by Date: Re: Opening db connections
- Next by Date: Images not appearing in IE7 in JSP
- Previous by thread: java.lang.UnsatisfiedLinkError - native method
- Next by thread: Re: java.lang.UnsatisfiedLinkError - native method
- Index(es):
Relevant Pages
|