Java 7 unsigned applet permissions 1.7.0_45

We have an applet that requires certain permissions, which we sign and provide all permissions.
However, during development, we use an unsigned applet.
We set all permissions in the user's .java.policy file in our home directory.

This stopped working in 1.7.0_45 (or possibly _40), as the non-standard applet no longer has additional permissions.
We see this error:
  Called: java.security.AccessControlException: access denied ("java.util.PropertyPermission" "OurCustomSystemProperty" "read")

CAUSE
Sun has changed the security behavior of unsigned applets to 1.7.0_45 or 40.
Now they have created and set a new deployment property:

deployment.security.use.user.home.java.policy=false

This means that the user’s .java.policy file is ignored by default.

Solution
See My answer below.

+4
source share
1 answer

Decision

Or:

a. Change the deploy.properties parameters and set the specified property to true. The path for this is: C: \ Users \ USERNAME \ AppData \ LocalLow \ Sun \ Java \ Deployment \ deployment.properties
Add this line anywhere in the file:

deployment.security.use.user.home.java.policy=true

or

. JRE central java.policy
: C:\Program Files (x86)\Java\jre7\lib\security\java.policy

!

+6

All Articles