Hi, I managed to sign a JAR file using Keytool and Jarsigner (for the Java Plug-in 1.3). I also generated a certificate. OK, but what now ? When I open a html file using the applet I get security exceptions (looking in the Java Console): java.security.AccessControlException: access denied (java.util.PropertyPermission user.dir read). This happens when I click on a button that invokes the JFileChooser. So where do I go wrong ? I want to avoid that a user should use the policytool to grant this applet access. I thaught that when the applet starts a window should pop-up with the certificate info ? This does not happen. Also this window should say what kind of access the applet asks for (eg full permission to write to hard disk). Do I have to extend my code with netscape.security.* classes ? An what aboud the java.security.* classes ? Does anyone can give me an explanation how I could solve this ? Thx very much already, Stefan
Hi Stefan, I think you might have made an error in signing your code. The great thing about the Plug-in is that we don't need to really worry about com.ms.security or com.netscape.security anymore. Try and follow this example. Good Luck, Manfred.
Aaaaaand ... we're on the march. Stylin. Get with it tiny ad.
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop