Self-signing applet - Error Message - Applet not running.
843785Dec 10 2008 — edited Dec 11 2008Hello!
I'm trying to self-sign an applet but it seems like it's not working. I've come as far as adding (or trying to add in my case) my certificate to cacerts.
I've followed these instructions : http://forums.sun.com/thread.jspa?threadID=174214
The cmd message below seems to indicate an error.
C:\Program Files\Java\jdk1.6.0_10\jre\lib\security>keytool -import -keystore "C:
\Program Files\Java\jdk1.6.0_10\jre\lib\security\cacerts" -file "C:\Program File
s\Java\jdk1.6.0_10\jre\lib\security\Zepang.crt"
Ange keystore-lsenord: // Enter keystore Password:
─gare: CN=Zepang, OU=none, O=none, L=none, ST=Sweden, C=SWE
Utfrdare: CN=Zepang, OU=none, O=none, L=none, ST=Sweden, C=SWE
Serienummer: 493f0f1d
Giltigt frn: Wed Dec 10 01:36:45 CET 2008 till: Tue Mar 10 01:36:45 CET 2009
Certifikatfingeravtryck:
MD5: 0E:1C:A3:71:57:91:BD:E6:89:AB:24:61:49:7B:B8:2B
SHA1: 05:76:1B:C1:07:08:DD:ED:81:34:97:E7:63:28:54:59:86:F2:45:A9
Signaturalgoritm: SHA1withRSA
Version: 3
Betror du det hr certifikatet? [nej]: ja // Do you trust this certifikate [no]: yes
Certifikatet har lagts till i keystore-filen // The certificate has been added to the keystore file.
nyckelverktygsfel: java.io.FileNotFoundException: C:\Program Files\Java\jdk1.6.0 // nyckelverktygsfel ~ keytoolerror
_10\jre\lib\security\cacerts (Access is denied)
I can't run the applet in internet explorer. I get the "To help protect your security , Internet Explorer has restricted this webpage from running scripts or ActiveX controls that could access your computer. Click here for options...".
When I click yes window , with the same size of the applet is displayed but the applet is not run. When I look at the details of the error it says:
java.security.AccessControlException: access denied (java.io.FilePermission back.jpg read)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkRead(Unknown Source)
at sun.awt.SunToolkit.getImageFromHash(Unknown Source)
at sun.awt.SunToolkit.getImage(Unknown Source)
at javax.swing.ImageIcon.<init>(Unknown Source)
at javax.swing.ImageIcon.<init>(Unknown Source)
at Memorii6.<init>(Memorii6.java:21)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Undantag: java.security.AccessControlException: access denied (java.io.FilePermission back.jpg read).
Undantag (swedish) = exception(english).
My OS is vista 32, ultimate.
I'm grateful for any assistance!