File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "First day with RMI" Watch "First day with RMI" New topic

First day with RMI

Hussein Baghdadi
clojure forum advocate

Joined: Nov 08, 2003
Posts: 3479

Hola ranchers.
I was playing with RMI tutorial at
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\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.
I agree. Here's the link:
subject: First day with RMI
It's not a secret anymore!