上QQ阅读APP看书,第一时间看更新
Starting the server
Ensure that the RMI registry is started before you start the application:
- For Microsoft Windows (use javaw if you're unable to start the registry; port_no is optional):
start rmiregistry <port_no>
- For Solaris OS or Linux:
rmiregistry <port_no> &
- For Microsoft Windows:
java -cp
C:DistributedComputingWorkspacesrc;C:DistributedComputingWorkspace
classescalculate.jar -Djava.rmi.server.codebase=
file:C:DistributedComputingWorkspaceclassescalculate.jar -
Djava.rmi.server.hostname=myserver.host.com -
Djava.security.policy=server.policy remote.CalculateEngine
- For Solaris OS or Linux:
java -cp
/home/distributedcomputing/workspace/src;
/home/distributedcomputing/workspace/classes/calculate.jar -
Djava.rmi.server.codebase=http:
//myserver/~server/classes/calculate.jar -
Djava.rmi.server.hostname=myserver.host.com -
Djava.security.policy=server.policy
remote.ComputeEngine