The file to edit is JAVA_HOME/lib/security/java.policy
Add a block at the bottom like this:
grant codeBase "http://xxx.xxx.xxx.xxx/context/-" {
permission java.security.AllPermission;
};
The "-" behind serves as a wildcard.
References:
- http://geosim.cs.vt.edu/Java/MigModel/he
lp/Policies.html - http://download.oracle.com/javase/tutori
al/security/tour2/step2.html - http://java.sun.com/developer/onlineTrai
ning/Programming/JDCBook/appA.html - http://stackoverflow.com/questions/26128
95/where-to-place-java-applet-policy-fil e - http://stackoverflow.com/questions/14172
71/where-policy-file-location-for-my-app let-that-needs-clients-permission-to-acc ess
No comments:
Post a Comment