Can I Sign Java Class Files

I have a website that was professionally built about 8 years ago and generally works absolutely fine. It uses a Java applet to create diagrams, and now Oracle requires all Java code to be signed. I have 2 problems:

  • The company that built the site went bankrupt in the credit crisis.
  • There is no Java file on the site. It seems that calls are directly passed to class files.

The site uses ASP.net and was created in Visual Studio. Question .. can java class files be signed, or can only a jar file be signed?

thank you for your help! PS / I am not an expert in Java, but I built the original site before it was rebuilt 8 years ago, so you can say that I'm kind of a relatively capable amateur!

+7
java code-signing
source share
1 answer

You can pack your classes in a jar file and sign the jar. Depending on how you download the applet in the browser, you may need to slightly modify the HTML tag.

More on creating a jar file: http://docs.oracle.com/javase/tutorial/deployment/jar/build.html

More information on signing the jar: http://docs.oracle.com/javase/tutorial/deployment/jar/signing.html

For more information about loading an applet from a jar, a Java applet in a JAR file

+1
source share

All Articles