java.lang.UnsatisfiedLinkError

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

java.lang.UnsatisfiedLinkError

Nenad Amodaj
I am trying to create an instance of a Java class which uses JNI to call
native Windows DLL, but BeanShell generates
"java.lang.UnsatisfiedLinkError".

Here is the sample code:

System.loadLibrary("MyLib"); // this seems fine
CMyClass c = new CMyClass(); // unsatisfied link error!

The same code runs fine when compiled within the main() routine of a
regular Java app (using Java 1.5 compiler and run-time).
Furthermore, running the System.getProperty("java.library.path") command
from BeanShell displays the correct directory location for the native DLL.

What I am doing wrong?

Any help much appreciated.
Nenad






-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Beanshell-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beanshell-users