problem with applet in jre6u45 asking permission
My question is about applet .I am trying to use JRE6u45 but its asking security permission and applet funtionality is not working properly but its working fine in JRE6u16 please help me how to run applet application in JRE6u45 and above version.
I am trying to run applet application in JRE6u45 but its asking permission like not able to access local system file .when i added these permission in java policy file its working fine but my question is that how to update these all permission to all clients who ever will access this app .
Error:"AccessControlException access denied("java.util.PropertyPermission""myProp""writ e")
--- Update ---
Please help me for above error
Re: problem with applet in jre6u45 asking permission
First of all, you may want to reconsider granting java.security.AllPermission to the world.
That said, if you look in the JAVA_HOME/jre/lib directory you should see two files.
In java.security there should be two lines that start with policy.url.1 and policy.url.2. They name the default policy files used by the JVM. Note: they must be specified as URLs, not Files. You can add more if you feel the need.
The java.policy file in the jre/lib directory is the default policy and is the baseline for all users. Permissions are additive, so more lenient permissions may be specified in the individual user's home directory than in these system-wide files.
Hope that helps and again, be careful about granting permissions too liberally.