Solved

RMIC compile error- class * not found

Posted on 1998-09-21
2
3,959 Views
Last Modified: 2010-05-18
When trying to compile my class with the RMI compiler into stubs and skeletons, I am getting the message "error: Class examples.hello.Hello not found" even though I am running the rmic.exe from the directory where the class is located... I have no idea what this problem could be???  I have tried fooling around with the CLASSPATH var and the RMIC options, but to no avail- any ideas please?
0
Comment
Question by:2djohn
2 Comments
 
LVL 8

Accepted Solution

by:
diakov earned 100 total points
ID: 1224711
It seems, your class is defined within the package examples.hello or you haven't 'import'-ed some package you need.
In java packages reside in directories, relative to the directory you compile. In your case, put all files from this package in a directory examples\hello, then run the compiler from the directory where the 'examples' is a subdirectory, providing good path name for the file you're compiling.

Cheers.
0
 
LVL 1

Expert Comment

by:sirigere
ID: 1224712
import package java.rmi.server.*
that will solve u'r problem..that's why u'r server was not generating the stub and the skeleton


0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The viewer will learn how to implement Singleton Design Pattern in Java.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

776 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