# Loading a JAR file in a Parent DirectoryIn

Jiro Ibuki (jiroibuki@geocities.com)
Sun, 18 Apr 1999 13:38:03 -0700

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Madan Mohan Ranganath: "File i/o"
- Previous message: Luciano Biazutti: "decompilation ?"
- Next in thread: Jan Luehe: "Re: Loading a JAR file in a Parent DirectoryIn"

    Date: Sun, 18 Apr 1999 13:38:03 -0700

    From: Jiro Ibuki <jiroibuki@geocities.com>

    To: java-security@java.sun.com

    Subject: Loading a JAR file in a Parent DirectoryIn

With JDK 1.1, a JAR file StepTest.zip stored in the parent directory
can be read with an ARCHIVE clause in the APPLET tag specified as

<APPLET CODE = "QuickSortHApp.class" ARCHIVE = "../StepTest.zip" ...

However, this ARCHIVE clause causes an error with JDK 1.2:

java.security.AccessControlException: access denied
(java.io.FilePermission
/nfs/stak/a4/classes/cs/minoura/cs162/javaProgs1.2/StepTest.zip read)
. . .
at java.security.AccessController.checkPermission(Compiled Code)
at java.lang.SecurityManager.checkPermission(Compiled Code)
at java.net.URLClassLoader$3.run(URLClassLoader.java:403)
. . .

I could not find any description on this topic on Tutorial Web pages.

Thank you for any help.

- Next message: Madan Mohan Ranganath: "File i/o"
- Previous message: Luciano Biazutti: "decompilation ?"
- Next in thread: Jan Luehe: "Re: Loading a JAR file in a Parent DirectoryIn"