Solved

RMIC compile error- class * not found

Posted on 1998-09-21
2
3,947 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

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

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
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 will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
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.

896 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