signed Jar files and JNI

Benjamin Renaud (br@doppio)
Fri, 14 Mar 1997 10:40:14 -0800

Date: Fri, 14 Mar 1997 10:40:14 -0800
From: br@doppio (Benjamin Renaud)
Message-Id: <199703141840.KAA15695@springbank.eng.sun.com>
To: Marcus de Barros <marcus@sandiego.altris.com>
Subject: signed Jar files and JNI
In-Reply-To: <332985EA.6C1A@altris.com>

Though you don't give quite enough information, this is very likely
the bug that Dave refered to: it's a bug in 1.1 which prevents signed
applets from linking against native libraries and is fixed in 1.1.1.

-- Benjamin

Marcus de Barros writes:
> I am attempting to call .dll routines from a Java applet. I first
> created it as a Java application and it works just fine. The I made it
> an applet and created a signed Jar file. When I run the applet I get
> the following:
>
> appletviewer http://hostnamehere/~marcus/runtime/index.html
>
> Java: name = This is a test
> java.lang.UnsatisfiedLinkError: sendData
> at Wrapper.<init>(Wrapper.java:12)
> at Main.init(Main.java:7)
> at sun.applet.AppletPanel.run(AppletPanel.java:273)
> at java.lang.Thread.run(Thread.java:481)
>
> I know that the library is being found by System.loadLibrary because if
> I remove the .dll I get a java.lang.UnsatisfiedLinkError: wrapper, which
> is the name of the library.
>
> I looked through the java-security archives and found a similar question
> had been asked. (from David Boydston on 2/7/97). However, there were
> two responses to his question. One indicated that it was a bug in JDK
> 1.1 and would be addressed in JDK 1.1.1. (David Brown 2/7/97) The next
> response seemed to indicate that this should work. (Marianne Mueller
> 2/11/97). Could you please clarify?
>
> thanks,
>
> Marcus de Barros
> Altris Software
> marcus@altris.com
>