This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Distributed Java and the fly likes First day with RMI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "First day with RMI" Watch "First day with RMI" New topic
Author

First day with RMI

Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3476

Hola ranchers.
I was playing with RMI tutorial at java.sun.com
and I have the following Qs :
(please note, this is my first day with RMI)
1. I want to launch the server :
set CLASSPATH=F:\todd\src;f:\todd\public_html\classes\compute.jar
java -Djava.rmi.server.codebase=file:/f:\todd\public_html\classes/ engine.ComputeEngine
ofcourse its work !
but when changing the classpath to the following :
set CLASSPATH=F:\todd\src\engine;f:\todd\public_html\classes\compute.jar
I get the exception that its could't find engine.ComputeEngine class
why ? I think it should work coz I have included its class in the classpath .
also I have changed the second command to :
java -Djava.rmi.server.codebase=file:/f:\todd\public_html\classes engine.ComputeEngine
also its not work, why ?
2. I have the following dirs;
f:\todd\src\engine // contains the server class and the stub & skel
f:\todd\src\client // client class
f:\todd\src\compute // interface class
f:\todd\public_html\classes\compute.jar
f:\todd\public_html\classes\engine // contains the stub & skel
I have deleted the stub and skel and the application is still work ! why ?
also, I have deleted the stub and skel in src\engine dir, now the application is not working
why ?
please forgive for these questions, but this is my first day in RMI.
every post will help me.
 
Consider Paul's rocket mass heater.
 
subject: First day with RMI
 
Similar Threads
RMI Concepts
dynamic code downloading problem with RMI
dynamic code downloading problem with RMI
how to set host in RMI
JAR Absolute Class-Path