Win a copy of Learning Java by Building Android Games this week in the Android 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
Bartenders:
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

jar sha question  RSS feed

 
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!
 
Bartender
Posts: 9525
12
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: 9525
12
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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!