Hi Actually this is not an applet question but the root cause is the use of applets thats why I thought to put it here. As applets cannot access anything beyond JVM in the Browser window, a special java.policy file needs to be made to grant access to certain things. PROBLEM: I am using a class from sun.security.krb5 package which throws exception in checkPackageAccess() function of SecurityManager. I am using the sun.security.krb5 class in an applet in order to get some information from the client's computer when he is running the applet. Since its internal, we expect that the client's computer has a java.policy file for the same. Now when I run the applet on the client's computer then the error on the console is
. The problem here is that I am having the following line on my java.policy file "permission java.lang.RuntimePermission "accessClassInPackage.sun.security.krb5"". So if you could please enlighten me how to go about things then I would be very helpful.
posted 11 years ago