# Re: NT and jdk1.1.4

Charlie Lai (Charlie.Lai@Eng)
Fri, 17 Oct 1997 16:38:30 -0800 (PDT)

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Alex Chaffee: "RMI Security Manager Bug"
- Previous message: Anjali Goel: "Please help!!!"

    From: Charlie.Lai@Eng (Charlie Lai)

    Message-Id: <199710172338.QAA10567@angeles.eng.sun.com>

    Subject: Re: NT and jdk1.1.4

    To: glenn@cs.byu.edu (Glenn Michael Judd)

    Date: Fri, 17 Oct 1997 16:38:30 -0800 (PDT)

    In-Reply-To: <199710172008.QAA16224@chop.cs.byu.edu> from "Glenn Michael Judd" at Oct 17, 97 02:08:42 pm

hi glenn,

> I downloaded all files from
> http://java.sun.com/security/signExample/index.html
>
> I ran the script and then put the signedWriteFile.html and
> signedWriteFile.jar into a directory where I could get
> to the via http. I then tried running the applet
> and got a security exception.
>
> Both machines I've encountered
> this on are running Windows/NT 4.0 with JDK 1.1.4 installed.
thanks for pointing this out. a bug fix in 1.1.3 has exposed this
new bug. we will fix it in the next release. the problem is this:
> D:\users\glenn\bug>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
jdk1.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: Alex Chaffee: "RMI Security Manager Bug"
- Previous message: Anjali Goel: "Please help!!!"