applet and DLLs.

Ravindra B. Nagaraju (ravi@versant.com)
Mon, 22 Mar 1999 11:55:19 -0800

Date: Mon, 22 Mar 1999 11:55:19 -0800
From: "Ravindra B. Nagaraju" <ravi@versant.com>
To: java-security@java.sun.com, ravi@slick.versant.com
Subject: applet and DLLs.

Hello,

I have a problem for which I am requesting your help. I would like to
know what I need to do so that an applet can load a dll file. The dll
file is not located on the local machine. I have plenty of clients
wanting to load a remote applet and I dont want to place the required
dll's on all the client machines.

>From my searching of this site, It seems like I need to jar the dlls
along with the class files and place it on the remote host. I did do
this and the remote html file used by appletviewer had an archive
parameter pointing to this archive file.

I signed my jar file using jarsigner. Do I need to do something else at
the client machine so that the signature can be validated?

When I tried to load the applet using the command:

% appletviewer http://intra.versant.com/ravi/index.html it gave me the
error:

load: class test.class not found.
java.lang.ClassNotFoundException: sun.net.ftp.FtpLoginException: user
at sun.net.ftp.FtpClient.login(Compiled Code)
at
sun.net.www.protocol.ftp.FtpURLConnection.connect(FtpURLConnection.j
at
sun.net.www.protocol.ftp.FtpURLConnection.getInputStream(Compiled Co
at sun.applet.AppletClassLoader.getBytes(Compiled Code)
at
sun.applet.AppletClassLoader.access$1(AppletClassLoader.java:216)
at
sun.applet.AppletClassLoader$1.run(AppletClassLoader.java:139)
at java.security.AccessController.doPrivileged(Native Method)
at
sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:136)
at java.lang.ClassLoader.loadClass(ClassLoader.java:280)
at
sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:110)
at java.lang.ClassLoader.loadClass(ClassLoader.java:237)
at
sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:368)
at sun.applet.AppletPanel.createApplet(AppletPanel.java:532)
at sun.applet.AppletPanel.runLoader(AppletPanel.java:468)
at sun.applet.AppletPanel.run(Compiled Code)
at java.lang.Thread.run(Thread.java:479)

my html file looks like:
Versant Testapplet

Versant Testapplet