Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » UnsatisfiedLinkError when invoking native method from non-default pkg
UnsatisfiedLinkError when invoking native method from non-default pkg [message #205202] Mon, 30 May 2005 06:12
Eclipse UserFriend
Originally posted by: chan.xxxx.xxx

My config: Eclipse 3.1M5, JRE 1.4.2.07 + WTP, Win xp.

I created a project with a default pkg and added a java file that invokes
a native method (sayHello) found in a C-dll. This works fine.

When I move the java file to some other pkg and run the executable there,
then I start getting :

java.lang.UnsatisfiedLinkError: sayHello.

The library seems to load because if I remove the dll I'll get a different
UnsatisfiedLinkError. For some reason the method can't be resolved from a
pkg that is not the default pkg.

The header file for the native method was generated using javah and the
signature of the native method follows the convention
Java_classname_methodname.

Any ideas as to why moving the java file from the default pkg to a
different pkg causes the native method to go unresolved?

Thanks in advance.
Chan.
Previous Topic:Compiler error in eclipse RC1 (linux gtk)
Next Topic:Changing Default Run Configuration settings
Goto Forum:
  


Current Time: Mon Nov 04 19:27:28 GMT 2024

Powered by FUDForum. Page generated in 0.02767 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top