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.zi p
The classes I wrote have for package training.rmi.date.
c:\JDK1.1.4\lib\training\r mi\date contains all the
classes (including the stub). So, when I issue
java -classpath .;c:\JDK1.1.4\lib\classes. zip training.rmi.date.ServerIm pl
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
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.zi
The classes I wrote have for package training.rmi.date.
c:\JDK1.1.4\lib\training\r
classes (including the stub). So, when I issue
java -classpath .;c:\JDK1.1.4\lib\classes.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
you need rmic.exe on impl file to generate the skel file and stub file after u use javac. good luck!
ASKER
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