Hard time making the SUN RMI tutorial example work
Esenih Camai
Greenhorn
Joined: Jan 07, 2001
Posts: 8
posted
0
I am stucked at Starting up the server, I can't get the following to work. 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 really do not understand how to set the codebase, hostname and policy properties. Can someone help?
karl koch
Ranch Hand
Joined: May 25, 2001
Posts: 388
posted
0
hi, in your bin directory of jdk you can find the policytool.exe you can add permissions (if you dont know which and it's just for testing, then you can add allPermissions) to the JRE/LIB/SECURITY/java.policy file. as codebase you can pick the location of the classes you run. karl