Win a copy of Fixing your Scrum this week in the Agile forum!
  • 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
  • Ron McLeod
  • Paul Clapham
  • Rob Spoor
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Holloway
  • Piet Souris
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Himai Minh

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: 9625
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: 9625
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.
 
I am displeased. You are no longer allowed to read this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic