Solved

Using rmic

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
nestparen challenge 4 57
java set up 1 48
Securing Jmx Console and web console 2 48
backtracking recursion  code 19 41
For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
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 the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

746 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

11 Experts available now in Live!

Get 1:1 Help Now