Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

First day with RMI  RSS feed

Hussein Baghdadi
clojure forum advocate
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!