• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Signing a Jar file

 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 .
 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic