"java.lang.UnsatisfiedLinkError" when file is added to a package
1 posts in topic
Flat View  Flat View

Posted By:   Unseen_Raider
Posted On:   Saturday, May 25, 2002 03:44 AM

I have created a dll called Hello.dll, which include a function called presentMainMenu. I use this dll to make a JNI-call in my java file, and if the java file doesn't specify a package it all works fine.

When I, however, add the java file to a package, it can't find the function and outputs: "java.lang.UnsatisfiedLinkError: presentMainMenu".

It is NOT complaing that it can't find the dll file , because if this is missing it outputs "java.lang.UnsatisfiedLinkError: no hello in java.library.path"

Any ideas about why this error occurs will be appreciated.

Re: "java.lang.UnsatisfiedLinkError" when file is added to a package

Posted By:   Vaishali_Shah  
Posted On:   Wednesday, June 19, 2002 10:47 AM

when you create the the h file create with the package name eg

javah -jni packagename.classname

and then include that .h file in your C++ code and see
About | Sitemap | Contact