The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
March 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Maybe you need a .policy file

Posted by Chris on March 07, 2001 at 9:58 AM

I guess you have to generate a java.policy file which grants you the required rights.
Save the following in a file called "java.policy":
grant {
permission java.net.SocketPermission "*:1024-65535", "connect, accept";
};

Then call your app with "java -Djava.security.policy=java.policy ..."

I hope that helps,

Chris



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us