by bouleetbil
3. juin 2011 13:34
If you have this error java.security.AccessControlException: access denied, you should sign your applet.
You will have this error if you would use the vnc applet :
Start vnc : vncserver -geometry 1024x600 -httpd /usr/lib/vnc/classes/ -depth 24:1
And vnc applet failed with java.security.AccessControlException: access denied
The solution :
you should sign /usr/lib/vnc/classes/VncViewer.jar
1. Create the certificat :
# pacman-g2 -S openjre
$ /usr/lib/jvm/java-6-openjdk/jre/bin/keytool -genkey
(.keystore is created in the home directory)
$ /usr/lib/jvm/java-6-openjdk/jre/bin/keytool -selfcert
2. Sign applet :
# pacman-g2 -S openjdk
you should have the permission to write in the directory the time to sign it.
$ /usr/lib/jvm/java-6-openjdk/bin/jarsigner -storepass KeySorePassword -keypass KeyPassPassword /usr/lib/vnc/classes/VncViewer.jar mykey
Now you can use the vnc applet in your browser.