orland.hoeber.net

Google API & Java Policy

The Google API will not work within a Java Applet unless you give Java permission to access the machines that respond to the request. To grant this permission, add the following lines to {java_home}/lib/security/java.policy

grant { 
permission java.util.PropertyPermission "google.soapEndpointURL", "read";
permission java.util.PropertyPermission "http.proxyHost", "read";
permission java.net.SocketPermission "api.google.com", "resolve";
permission java.net.SocketPermission "216.239.37.104:80", "connect,resolve";
permission java.net.SocketPermission "216.239.51.104:80", "connect,resolve";
};

 

 

 

© 2006. Orland Hoeber.

"Regardless of how complex computers and software have become, the human mind is still far more complex." -- Orland Hoeber, 2006.