• Post Reply Bookmark Topic Watch Topic
  • New Topic

starting rmi

 
bschizop
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am a java student and i'm having problem running rmi. recently i wrote a simple rmi programme and followed all the directions in the book except creating .bat file because it is not in the book and i don't know how to do it either and i'm trying to run both the programme in one machine,i compile the server source code,created skeleton and stub files set classpath,started the rmi registry but when i run the server
programme i get the following message"Java.Security.AccessControl Exception:acess denied(java.net.socket permission 127.0.0.1:1099 connect resolve)" please direct me throughtly this thing is killing me because without this i'm moving now where.
bschizo
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"bschizop",
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please log in with a new name which meets the requirements.
Thanks.
 
Robert Philip
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
use a security policy file in your command line as
java -Djava.security.policy=policy.all YourServer
and make sure your instantiate the SecurityManager.
The policy.all file should something like :
grant {
permission java.security.AllPermission "", "";
};
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!