• 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

jar sha question

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Alrighty I am completely new to java so please bare with me. The company I work for has an online java applet that has several .jar files. I've extract the .jar file, and decompiled the .class files with DJ Java Decompiler. I found the line in the class file that I need to re-write. (It's a basic println string) The problem is when I change the wording in the string and save the file. I get an error because the SHA key doesn't match.

How do I update the SHA key so that the changes I make in the class file doesn't prevent the applet from running? I've found a few things in sun's website but it all sounded a little too complicated. If someone could please tell me what to do in lehman's terms I'd really appreciate it.

Thanks!
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is the JAR digitally signed?
Then it is working correctly. The digital signiture makes tampering with the JAR impossible. You need to obtain your company's digital certificate and sign the JAR after you have changed it. Have a look at this tutorial on Signed Applets for the mechanics on how to sign a JAR.
 
Steve Noll
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't know that we have a digital certificate. My company hired a contractor to develope this java applet 2 or 3 years ago. Would it be possible to obtain a new certificate and re-sign all of the files? If so, where do I find a certificate?
 
Joe Ess
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ask your web server admin. Your company probably has a certificate to enable HTTPS on your web server. If not, you can obtain one from Thawte, VeriSign or some other certificate authority.
 
The longest recorded flight time of a chicken is 13 seconds. But that was done without this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic