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


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

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.

This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more.
Beanshell-users mailing list
[hidden email]