Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

When I try to access a native method from my DLL, I just get an “UnsatisfiedLinkError.” What is the problem?

0
Posted

When I try to access a native method from my DLL, I just get an “UnsatisfiedLinkError.” What is the problem?

0

Location: http://www.jguru.com/faq/view.jsp?EID=131230 Created: Aug 21, 2000 Modified: 2000-08-24 23:25:32.304 Author: Mathias Neuhaus (http://www.jguru.com/guru/viewbio.jsp?EID=131203) The problem is an incorrectly mangled name for your C / C++ function, which can occur when you try to access a native method from a Java class inside a package. In this case, you must call javah -jni … from the base directory of your class hierarchy, and you must supply the fully qualified name (including the package name) of your class to javah (e.g. myPackage.myClass).

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123