The java.security.policy Property
If the text file containing our security policy is called (for example) policy.all, the original HelloClient example might now be run as follows:
java –Djava.security.policy=policy.all HelloClient
Alternatively this property can be set inside the program using System.setProperty().