Author
RMI Server connection problem on XP ?
Dimple
Greenhorn
Joined: May 23, 2005
Posts: 3
posted May 23, 2005 23:22:00
0
when i complie the following code on W98 it works fine but if i run this code on XP, its giving the error !!! code: java -Djava.rmi.server.codebase=file:/C:\serverstorage/ -Djava.security.manager -Djava.security.policy=java.policy DSImpl 169.1.1.1 data.txt Error: Server Exception : java.security.AccessControlException : access denied (java.net .SocketPermission 169.1.1.1:1099 connect,resolve) How to solve this problem ?
Nathan Pruett
Bartender
Joined: Oct 18, 2000
Posts: 4121
posted May 24, 2005 06:43:00
0
"Dimple Simple " - Welcome to the JavaRanch! Please adjust your displayed name to meet the JavaRanch Naming Policy . User names cannot be obviously fake and must constist of a first name and a last name. You can change your user name here . What's in your security policy file? All permissions or have you set specific permissions? Are the JVMs the same version on both machines? Also, I'm not sure if this affects the problem you are having any or not, but the URL in your java.rmi.server.codebase property should look like - Thanks! and welcome to the JavaRanch!
-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
Nathan Pruett
Bartender
Joined: Oct 18, 2000
Posts: 4121
posted May 26, 2005 06:39:00
0
This is a copy of this thread . Closing this one as the other has more information.
subject: RMI Server connection problem on XP ?