This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Signing a Jar file

 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 .
 
Dianna McDonald
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Gregg,
Did you ever find a solution to this problem? I am having the exact problem and can't seem to find any answers.
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic