The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
July 2000

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:

RE:RMI server sample code of "Thinking in JAVA"

Posted by Kishori Shara: on July 29, 2000 at 10:01 PM

Hi
You need to set security policy in java.policy file located in your local disk while trying rmi. Find the java.policy file in your local drive and take a backup . Then just put the following lines in that file and save it ( you have a back up of your original file which you can restore after testing this program ) .

grant {
permission java.security.AllPermission;
};

This should solve your problem. If you still get some problem then please refer to Core Java 2 Volume II( Chapter 5 and 9 ) for details of how to set security policies when using RMI.

Thanx
Kishori



Replies:

Sponsored Links



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