Link to home
Start Free TrialLog in
Avatar of fontaine
fontaine

asked on

RMI: problem with stub class [easy]

I am new with RMI. I have written an example, compiled
the classes and generated the stub and skelleton. I have
run the rmiregistry and then tried to launch the server.
This fails because the stub class cann't be found. I have
read the RMI FAQ and FAQ 27 seems to be what happen (CLASSPATH problem).

I run JDK1.1.4 and the path to the zip is:

c:\JDK1.1.4\lib\classes.zip

The classes I wrote have for package training.rmi.date.
c:\JDK1.1.4\lib\training\rmi\date contains all the
classes (including the stub). So, when I issue

java -classpath .;c:\JDK1.1.4\lib\classes.zip training.rmi.date.ServerImpl

from c:\jdk1.1.4\lib, there should be, I guess, no problem.

Could you tell me what I have missed?

Thanks for your help.

Bertrand



Note: RMI FAQ: http://java.sun.com/products/jdk/rmi/faq.html
ASKER CERTIFIED SOLUTION
Avatar of eugenem
eugenem

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of fontaine
fontaine

ASKER

You are totally rigth! The 100 points are for you. I must be
confused about something because I guessed that the . into
the classpath was including the current directory, i.e. c:\jdk1.1.4\lib itself. So, it would be very kind if you could tell me what the . is adding to the classpath (if any...).

Bertrand
you need rmic.exe on impl file to generate the skel file and stub file after u use javac. good luck!