Solved

RMI: problem with stub class [easy]

Posted on 1997-10-23
3
467 Views
Last Modified: 2012-06-21
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
0
Comment
Question by:fontaine
3 Comments
 
LVL 3

Accepted Solution

by:
eugenem earned 100 total points
ID: 1229428
It seems you forgot about c:\JDK1.1.4\lib in CLASSPATH:
java -classpath .;c:\JDK1.1.4\lib\classes.zip;c:\JDK1.1.4\lib
0
 
LVL 5

Author Comment

by:fontaine
ID: 1229429
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
0
 

Expert Comment

by:Threshold
ID: 1229430
you need rmic.exe on impl file to generate the skel file and stub file after u use javac. good luck!
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
The viewer will learn how to implement Singleton Design Pattern in Java.

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now