Our Java application has a function which outputs a Java applet which can be uploaded to our online repository. Recently we have been having trouble with Oracle security updates which require applets to be codesigned unless Java security settings are lowered on the client's machine.
To fix this we are trying to codesign the applets server side when they are uploaded but I have run into some trouble. The codeisiging seems to work fine with a command like this (using a certificate from Digicert):
jarsigner -tsa http://timestamp.digicert.com -keystore ./keystore.jks -storepass pass /path/to/jar alias
But we still get an error that says:
This application contains both signed and unsigned code'
I believe this is occurring because the Java application outputs applets that contain a main jar file and then a few .class files. Is there anyway to avoid this error without getting rid of the .class files? We currently want to fix this without having to make any changes to the Java application that outputs that applets.