Hey!
I am just trying out signing applets, and even a simple java script won't run after signing it :\
It does run from the command line, but when I try to load it into my browser, it just doesn't work.
JavaCode:
html:Code:import java.applet.Applet; public class Secure_Connection extends Applet{ public static void main(String[] args){ System.out.println("hi"); System.exit(0); } }
When I check the console, it doesn't print anything.Code:<APPLET CODE = "Secure_Connection.class" WIDTH="10" HEIGHT="10" ARCHIVE = "Secure_Connection.jar" > This example uses an applet. </APPLET>
Though, when I run it from the command prompt using:
It prints "hi" perfectly fine.Code:java -jar Secure_Connection.jar
I compile and sign my applet using the following batch code:
Please tell me what I am doing wrong.Code:javac *.java jar cfm Secure_Connection.jar MANIFEST.txt Secure_Connection.class keytool -genkey -alias me -keystore compstore.ks -keypass test1234 -dname "cn=jones" -storepass test1234 jarsigner -keystore compstore.ks -storepass test1234 -keypass test1234 Secure_Connection.jar me




Reply With Quote