# Re: JDK 1.1 Signed Applet Example Problem

Charlie Lai (Charlie.Lai@Eng)
Mon, 3 Nov 1997 12:35:22 -0800 (PST)

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Roland Schemers: "Re: ClassLoader bug"
- Previous message: Roland Schemers: "Re: preformatted text"

    From: Charlie.Lai@Eng (Charlie Lai)

    Message-Id: <199711032035.MAA04010@angeles.eng.sun.com>

    Subject: Re: JDK 1.1 Signed Applet Example Problem

    To: amoussin@email.sjsu.edu (Alexis Moussine-Pouchkine)

    Date: Mon, 3 Nov 1997 12:35:22 -0800 (PST)

    In-Reply-To: <345E30BE.91F2309F@email.sjsu.edu> from "Alexis Moussine-Pouchkine" at Nov 3, 97 12:14:54 pm

hi,

> I'm having trouble just running the signedWriteFile applet
> (http://java.sun.com/security/signExample/) using appletviewer 1.1.4,
> although I have "Duke" set as a full authority on my system:

if you're using win95/NT, then there's a bug which will be fixed in the
next release. the problem is this:

javakey -gs sign_directive_Duke signedWriteFile.jar
Adding entry: META-INF/MANIFEST.MF
Creating entry: META-INF\DUKESIG.SF
Creating entry: META-INF\DUKESIG.DSA

all the META-INF files should be added using forward slashes.
jdk 1.1.3 didn't care that there were back slashes, but
jdk 1.1.4 correctly checks.
you'll be glad to know there's a workaround. in a temporary subdirectory:
1) jar xvf signedWriteFile.jar
2) jar cvf newSignedWriteFile.jar META-INF\DUKESIG.SF META-INF\DUKESIG.DSA
writeFile.class writeFile.html
3) use this new signed jar file in place of the old signed jar.
'javakey' incorrectly adds back slashes, but 'jar' does not.
hopefully this will solve the problem.
thanks for pointing out the problem, and sorry for the inconvenience.
charlie

- Next message: Roland Schemers: "Re: ClassLoader bug"
- Previous message: Roland Schemers: "Re: preformatted text"