Date: Fri, 7 Feb 1997 10:36:37 -0800
From: brown@monkey (David Brown)
Message-Id: <199702071836.KAA02901@monkey.eng.sun.com>
To: java-security@java, dhboy@sb.net
Subject: Re: Is this possible with 1.1?
Hi David,
Back in the stone-age of java (a year ago), someone being
extra careful about applet security hard-coded it into our VM
that an applet couldn't load native code or invoke (directly)
native methods. This relic of a feature is probably what you're
seeing. Someone noticed this, but too late to change it
in JDK1.1. There will however be a bug fix release (1.1.1,
4-6 wks after JDK1.1) that will have this fixed. Your
applet will be omnipotent <maniacal cackle here>!
-Dave Brown
>
> Greetings,
>
> We are using 1.1beta3 to create *signed* JAR files, so far so good...but
> when we include DLL's in the JAR file, we are getting errors when we
> attemt to call the native method(s).
>
> The error shown below is the result of a call to a SerGetLibVer whos
> only function is to return an int.
>
> This Applet was built from a *working* Application.
>
> G:\JDK1.1b3\JavaDev\SerPort\WinTerm\Applet>AppletViewer
> AppletTermSig.html
> loading G:\JDK1.1B3\JAVA\BIN\..\lib\awt.properties
> SerialPort class detected: JDK1.1beta3.3 and loaded: jSerPortDemo
> java.lang.UnsatisfiedLinkError: SerGetLibVer
> at SerialPort.GetLibVer(SerialPort.java:163)
> at SerialPort.<init>(SerialPort.java:66)
> at WinTerm.<init>(AppletTerm.java:90)
> at AppletTerm.action(AppletTerm.java:30)
> at java.awt.Component.handleEvent(Component.java:1854)
> at java.awt.Component.postEvent(Component.java:1449)
> at java.awt.Component.postEvent(Component.java:1459)
> at java.awt.Component.dispatchEvent(Component.java:1356)
> at
> java.awt.EventDispatchThread.run(EventDispatchThread.java:109)
>
> If this is a known bug thats fine, we will wait for the next
> release...the important questions are:
> 1) Should this work (i.e. is this part of the plan)?
> 2) Are there any additional docs to those in 1.1b3 that discuss details
> of this?
>
> --
> Dave Boydston
> Solutions Consulting
>