aspose file tools*
The moose likes Java in General and the fly likes Signing a Jar file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Signing a Jar file" Watch "Signing a Jar file" New topic
Author

Signing a Jar file

Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

Ok, I have a strange problem. This may need to be moved to the Web Start forum, however, I feel this has more to do with Jar Signing and less to do with Web Start. Plus. that forum is always dead and poorly moderated.
I have an application that uses activation.jar and mail.jar from the JavaMail API for E-mailing. For some reason, these jar files come pre-signed with a certificate. So when Web Start tries to load them, it tells me that the cert. I signed my jar file with does not match the cert that those jar files are signed with and will not let the program execute.
I tried signing them myself, but then I get a message that says they are signed by 2 different certs.
So lastly I tried unjaring the jar files, jaring them back up, and signing them myself, but that didn't work either.
Anyone have any ideas as to what I can do?
BTW - I also un-jar'd them and then jar'd them back into my 1 JAR file, but I get several errors when trying to send an E-mail and I don't know what they mean. I may look more into that if no one else has any better alternative. I would rather keep these 2 jar files seperate from my main jar file.
Thanks.


GenRocket - Experts at Building Test Data
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
So now that I have proved that this forum is barely moderated also . . .
Wouldn't this be a security issue? That is a much more FUN forum that we could move this too .


"JavaRanch, where the deer and the Certified play" - David O'Meara
Dianna McDonald
Greenhorn

Joined: Jan 24, 2001
Posts: 23
Gregg,
Did you ever find a solution to this problem? I am having the exact problem and can't seem to find any answers.


-- <br />Dianna M. McDonald<br />Web & Usability Geek<br />"Girls like computers too!"<br />website:http://www.girlgeek.ca
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

Originally posted by Dianna McDonald:
Gregg,
Did you ever find a solution to this problem? I am having the exact problem and can't seem to find any answers.

Yes, when you unjar the activation.jar and the mail.jar you will notice that there is a META folder created. Delete this META Folder and rejar the class files. The meta folder contains the certificate so when you jar up the info, the cert is already there.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Signing a Jar file