any java/RMI experts
#1
![Post](https://www.scoobynet.com/images/icons/icon1.gif)
I am having trouble getting RMI to work and was hoping that someone could help me out as it's driving me mad. When I try to create the remote object I keep getting the following error:
java.security.AccessControlException: access denied (java.net.SocketPermission localhost:1024- listen,resolve)
I have tried setting a policy file for it, but it doesn't seem to help.
Thanks in advance
java.security.AccessControlException: access denied (java.net.SocketPermission localhost:1024- listen,resolve)
I have tried setting a policy file for it, but it doesn't seem to help.
Thanks in advance
#2
![Post](https://www.scoobynet.com/images/icons/icon1.gif)
If the policy has been defined correctly, it sounds like Java can't find the file, so try specifying it explicitly;
java -Djava.security.policy=D:\mydir\java.policy my.rmi.client.App
java -Djava.security.policy=D:\mydir\java.policy my.rmi.client.App
Thread
Thread Starter
Forum
Replies
Last Post
The Joshua Tree
Computer & Technology Related
18
11 September 2015 09:24 PM