?
Solved

Using rmic

Posted on 2002-05-10
3
Medium Priority
?
241 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 35

Accepted Solution

by:
girionis earned 400 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

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…
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.
This video teaches viewers about errors in exception handling.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
Suggested Courses
Course of the Month13 days, 1 hour left to enroll

777 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