Tuesday, December 17, 2013

Tip of the Day: AccessControlException - userTimezone

While opening the a java applet, you face below exception

The java.policy file present in the java installed directory to which Java TM plugin is pointing is not having permission to write user.timezone value.
1.       Locate the java.policy file of Java TM browser plugin
1.1.    The link “http://www.javatester.org/version.html” says about how to find java version, however I am still looking for the exact way to locate java.policy file which is being referred by Java TM browser plugin.
1.2.    This file is present in java installed directory, e.g. C:\Program Files (x86)\Java\jre7\lib\security
1.3.    If you are not sure about the location then I will suggest you to add grant in all the java.policy files present in your computer in all the drives.
2.       Add below entry in “grant {….}”, this is the last grant snippet in the file.
2.1.    permission java.util.PropertyPermission "user.timezone", "write";

I am not going into the details of security implications of this setting, so please do your own due diligence on whether this quick fix will suffice in your own situation. 

Thanks to Vikrant Korde for today's Tip!


  1. Very Interesting and wonderfull information keep sharing
    Visit Here

  2. Some info on how to write great essay you can learn here. Maybe this kind of info could be helpful for your future

  3. Very good, I think I found the knowledge I needed. I will see and refer some information in your post. thank you

  4. Access control exemption has been dscussed and detailed over here. This new post has shared some useful tips for today with us. But you can get reliable data from https://www.essaygeeks.co.uk/assignment/ to write your task easily. Thanks for sharing these useful tips with us. Things are discussed in a detailed manner over here.