• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jar sha question

 
Steve Noll
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • 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!
 
Joe Ess
Bartender
Posts: 9337
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • 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
  • 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: 9337
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic