Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Creating Signed Applets
Hello Friends,


I am trying to create a signed applet using jdk 1.1.8(it's old times
back for me...), so I am trying to use the "javakey" tool that comes
with this jdk. Now, for some reason when I am doing the step of
actually signing the jar file by doing:

"javakey -gs sign.directive MyApplet.jar"

I am getting following error:

error generating signature: java.util.zip.ZipException: invalid entry
compressed
size (expected 9525 but got 9270 bytes)[invalid entry compressed size
(expected
9525 but got 9270 bytes)]

Could you guys & gals please see if you could remember seeing and
resolving something like this from the days of jdk1.1. I would really
appreciate your help and time. Thanks in advance.

Regards,
Manjari.

Report this thread to moderator Post Follow-up to this message
Old Post
Manjari
03-20-04 01:54 AM


Re: Creating Signed Applets
Manjari wrote:
..
> I am trying to create a signed applet using jdk 1.1.8

Why on earth would you do that?
If you wanted to target the MS 1.1VM
(whcich I advise people to get rid of
for security concerns, you really need
to develop in the last Java that MS spoke,
1.1.4

> "javakey -gs sign.directive MyApplet.jar"
>
> I am getting following error:
>
> error generating signature: java.util.zip.ZipException: invalid entry
> compressed
>  size (expected 9525 but got 9270 bytes)[invalid entry compressed size
> (expected
>  9525 but got 9270 bytes)]

I noticed that Java compiled to be
readable by 1.1 JVM's (the -target
option) was slightly bigger in bytes
than for the 1.4 VM.  That may be it..

--
Andrew Thompson
* http://www.PhySci.org/ Open-source software suite
* http://www.PhySci.org/codes/ Web & IT Help
* http://www.1point1C.org/ Science & Technology



Report this thread to moderator Post Follow-up to this message
Old Post
Andrew Thompson
03-20-04 01:54 AM


Re: Creating Signed Applets
"Manjari" ...
> "Andrew Thompson" ... 
... 

> ...This has come up as a task to support one of the
> older apps that one of the client has which installs its own java
> plugin 1.1.8(cannot change :( ). I will try to recompile the code with
> the target JVM and see if that helps.

I don't get it.  What do you mean
"installs it's own java plug-in" when
you have the code?  Comment out
the bit(s) that install 1.1.8 and you
can likely compile and run under
1.4 (and use jarsigner, ..while
you're at it!)

I went looking for further info
on the 'javakey' tool you mentioned
and found that most of Sun's links
either go nowhere, or lead you to a
page mentioning it has entered 'EOL' process,
http://java.sun.com/docs/books/tuto...gn/signing.html
has several such links..

Mabe it's time to update!

(and please do not top-post, it
destroys the thread of a
conversation)

--
Andrew Thompson
* http://www.PhySci.org/ Open-source software suite
* http://www.PhySci.org/codes/ Web & IT Help
* http://www.1point1C.org/ Science & Technology



Report this thread to moderator Post Follow-up to this message
Old Post
Andrew Thompson
03-20-04 01:54 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Java Security archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 01:15 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.