Solved

Using rmic

Posted on 2002-05-10
3
231 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
JAVA part two 5 57
Error with Java/Cache JDBC Classpath 2 30
JavaScript/Java - Changing an image background color 4 54
Java Options in Zimbra Server 2 44
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
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…

911 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

17 Experts available now in Live!

Get 1:1 Help Now