D
Dave Neary
Hi all,
I have a Java applet which uses some JNI stuff to interract with a scanner.
The basic way things are is:
java -> call sane stuff
sane.jar -> loadLibrary(sanej)
sanej.dll contains the jni wrapper stuff around sane.dll
On windows, sanej.dll is in jre/bin, and sane.dll is on the system PATH
(in c:\sane). On linux, libsanej.so is in jre/lib/i386, and libsane.so is
in /usr/local/lib, which is in the system ld.so search path.
When I run the applet as an application (calling the constructor, init,
start, etc manually in the main method) all goes well, I get a scan.
When I load the applet in a browser on Windows, however, it all goes
pear-shaped and the browser dies without a trace.
On Linux, the same applet works fine.
The questions, then, are
1) How can I get more information about what's going wrong on windows?
I assume that the problem is that sane.dll isn't being found when a
function in the library is called. What search mechanism will be used to
search for sane.dll? I have also tried putting sane.dll in jre/bin,
without success.
2) Anyone know how to fix it and make everything better?
Thanks a lot,
Dave.
I have a Java applet which uses some JNI stuff to interract with a scanner.
The basic way things are is:
java -> call sane stuff
sane.jar -> loadLibrary(sanej)
sanej.dll contains the jni wrapper stuff around sane.dll
On windows, sanej.dll is in jre/bin, and sane.dll is on the system PATH
(in c:\sane). On linux, libsanej.so is in jre/lib/i386, and libsane.so is
in /usr/local/lib, which is in the system ld.so search path.
When I run the applet as an application (calling the constructor, init,
start, etc manually in the main method) all goes well, I get a scan.
When I load the applet in a browser on Windows, however, it all goes
pear-shaped and the browser dies without a trace.
On Linux, the same applet works fine.
The questions, then, are
1) How can I get more information about what's going wrong on windows?
I assume that the problem is that sane.dll isn't being found when a
function in the library is called. What search mechanism will be used to
search for sane.dll? I have also tried putting sane.dll in jre/bin,
without success.
2) Anyone know how to fix it and make everything better?
Thanks a lot,
Dave.