From: Charlie.Lai@Eng (Charlie Lai)
Message-Id: <199711250105.RAA16146@angeles.eng.sun.com>
Subject: Re: your mail
To: dipanshu@cyberdude.com (Dipanshu Sharma)
Date: Mon, 24 Nov 1997 17:05:03 -0800 (PST)
In-Reply-To: <01bcf419$04f11740$64758fcc@dipanshu.dti.stpn.soft.net> from "Dipanshu Sharma" at Nov 18, 97 05:26:34 pm
hi,
> The example in site : http://java.sun.com/security/signExample/
> does not actually work on a win'95 machine. (that's where I tried).
are you using jdk 1.1.4? and you ran the 'doit' script?
if so, 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.
sorry for the inconvenience.
charlie