Originally posted by Tina Ljuslin:
Hi,
in the tutorial the say that u should use the command:
java -Djava.rmi.server.codebase=file:/c:\home\ann\public_html\classes/
-Djava.rmi.server.hostname=zaphod.east.sun.com
-Djava.security.policy=java.policy engine.ComputeEngine
I've changed this to:
java -Djava.rmi.server.codebase=file:/c:\home\tina\public_html\classes/
-Djava.rmi.server.hostname=localhost (have tried 127.0.0.1 as well)
-Djava.security.policy=java.policy engine.ComputeEngine
but whatever I try I always get:
ComputeEngine exception: access denied (java.net.SocketPermission host resolve)
java.security.AccessControlException: access denied (java.net.SocketPermission h
ost resolve)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkConnect(Unknown Source)
...
...
What am I doing wrong? (or have I forgotten to do something) I have started the registry (start rmiregistry) and set the classpath.
Can someone help?
//tina
I made the following change to ComputeEngine.java and it worked on localhost:
//String name = "//host/Compute";
String name = "Compute";
It seems they should have written the hostname instead of the string "host" in the name...