Solved

Using rmic

Posted on 2002-05-10
3
234 Views
Last Modified: 2010-03-31
Hi, guys.
We are stucked because we have to use RMI and when we use rmic to generate the stub and skeleton thing, we get an error message: "error: Classs test/testRmi.class not found"

We have the following structure:

package test;

public class testRmi {
   // bla, bla, bla
}

So, testRmi extends java.rmi.server.UnicastRemoteObject and does all the stuff required to be an rmi server.

When we compile testRmi, the class is generated in:
d:\projects\test

Then we go to d:\projects and run:

rmic test\testRmi.class

And the error message stated above appears.

We will appreciate your help.
0
Comment
Question by:pgiusto
  • 2
3 Comments
 
LVL 35

Accepted Solution

by:
girionis earned 100 total points
ID: 7001612
 The rmic is used to generate stubs and skeletons for remote objects. If your classes have been successfulyl compield with javac then in order to run them with rmic you have to give the fully qualified name separated by "." (dots). So in your case this would be: rmic test.testRmi

  Hope it helps.
0
 

Author Comment

by:pgiusto
ID: 7001635
OK. It works !!!
We think we need vacations. We are working too much.
Obviously we have to use dots, not slashes.

Thanks a lot to open our eyes.
0
 
LVL 35

Expert Comment

by:girionis
ID: 7001639
 It's happened to everybody. I am glad I helped. Thank you for the points :-)
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
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…

773 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