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.