Date: Thu, 04 Sep 1997 12:57:45 +0200
From: Davide De Benedictis <pegaso@mclink.it>
To: java-security@web2.javasoft.com
Subject: DLL and other archives in JAR files
I wrote a java application (on NT 4.0 using jdk1.1.3) which use the
serial port. All works perfectly like application or local applet. Now
for maintenance purpose (it's installed on 50 client pc) I stored
everything (.class and .DLL) in a jar file and I signed it with the
javakey tool.
When I download the applet from my HTTP server and I run the applet I
receive the exception:
java.lang.UnsatisfiedLinkError: no JWINPORT in shared library path
(JWINPORT is the name of the DLL)
Of course if I leave outside the DLL all works perfectly.
I read a message on the security FAQ archive 1 explaining that is
possible to store directly DLL inside the jar but you don't
explain how to use it !
How can I specify to look for the DLL files inside the jar file. The
problem appear to be the same with all the files inside the jar that
aren't classes.
I thought to extract "on the fly" these files with the util.zip classes
but if a jar file is for definition a self contained archive
there will be an easier way.
Thank you in advance.
Davide De Benedictis