I'm trying to link an applet to a Fortran DLL through a servlet using JNI. Originally I tried to directly communicate between the Applet and Fortran however security permissions were blocking the communication. The sun tutorial on Applets does mention that applets can't do this.
So I've introduced a Servlet to allow the Applet and Fortran to communicate. My problem at the moment is that I get the following error when I try to load the dll to the Servlet:
If you follow the trail through the JavaDocs, you end up at findLibrary
The loadLibrary method depends on the system variable java.library.path which for most servers isn't set to anything. If you read through the documentation of your server, each has a way to set system variables at startup time. Tomcat, you add a system variable called TOMCAT_OPTS something like set TOMCAT_OPTS=-Djava.library.path=[path to dll] startup