Solved

How do I compile RMI using RMIC and packages?

Posted on 1998-02-26
1
614 Views
Last Modified: 2012-05-04
I seem to be having a problem when it comes to compiling with rmic.

I have a directory :    sal\rmibook\timeserver\

I have a file in the folder timeserver called TimeServerImpl2.class which I
want to generate stubs and skeletons for.  This class is part of a package
(which it imports)
rmibook.timeserver

I cannot figure out how to compile my stubs.  I am working in NT and am
using JDK 1.1.2  --- I know it has something to do with the package stuff,
because I have been able to rmic things that do not import packages.

The errors seem to be that it can't find the file or it can't find the file
of type rmibook.timeserver.TimeServerImpl2.class

Please help!  Should I compile from a certain directory because it has a
package import?

0
Comment
Question by:scampa
1 Comment
 
LVL 1

Accepted Solution

by:
ashishagarwal earned 100 total points
ID: 1233270
Scampa,

I would advise to you read up the Documentation On Java 1.1.x. It gives pretty helpful info on Java and Package name.

in your scenario make sure :

you are in the root directory.. c:\

give the cmd :
rmic rmibook.timeserver.TimeServerImpl2

hope it helps
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

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…
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.
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
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:

932 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

16 Experts available now in Live!

Get 1:1 Help Now