# Multiple JAR files -- usage

Keshav Subramanya (keshav@india.hp.com)
Wed, 15 Oct 97 11:24:07 IST

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: alonm: "java signed applet with Netscape (From:alonm )"
- Previous message: 75533796@prodigy.com: "(guest) TONER"

    Message-Id: <199710150557.WAA01256@palrel3.hp.com>

    From: Keshav Subramanya <keshav@india.hp.com>

    Subject: Multiple JAR files -- usage

    To: java-security@web2.javasoft.com

    Date: Wed, 15 Oct 97 11:24:07 IST

Hi,

I have a number of classes packaged into two JAR files. All classes
are needed by my applet. I use this in my webpage:

<applet
code=MyApplet.class
archive="JAR1.jar, JAR2.jar"
width=400 height=400>
</applet>

This is according to the JAR Guide shipped with JDK1.1.4.

When I open this page in Netscape 4.03 after turning on the Java
Console and setting applet debug level to 9, I see this output:

# context = netscape.applet.MozillaAppletContext@800f224
# codebase = http://<server_address>/classes/
# archive = http://<server_address>/classes/JAR1.jar
# mayscript = false

i.e. the second JAR file isn't being accessed. The applet finally
fails because it doesn't find the classes residing in JAR2.jar.

Am I doing something wrong or is this a problem I'm seeing here?

Keshav

- Next message: alonm: "java signed applet with Netscape (From:alonm )"
- Previous message: 75533796@prodigy.com: "(guest) TONER"