File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Distributed Java and the fly likes rmic command : Class file not found Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "rmic command : Class file not found" Watch "rmic command : Class file not found" New topic
Author

rmic command : Class file not found

sa ag
Greenhorn

Joined: Sep 20, 2012
Posts: 1
I have my server file EUStatsServer.java(server program using RMI) and interface file EuStats.java(Interface having definition of method that would be used in EUStatsServer.java file) in C:\rmi folder.
firstly i compiled these file. i got EUstats.class file
While using command rmic EUStatsServer. it gives an error.
Class EUStatsServer not found.
Roberto Perillo
Bartender

Joined: Dec 28, 2007
Posts: 2258
    
    3

Greetings, Sa. Welcome to JavaRanch!

First, is this question related to the OCMJD certification?

Other than that, please TellTheDetails. How do you expect us to help you without knowing what is the error you are getting?


Cheers, Bob "John Lennon" Perillo
SCJP, SCWCD, SCJD, SCBCD - Daileon: A Tool for Enabling Domain Annotations
Himai Minh
Ranch Hand

Joined: Jul 29, 2012
Posts: 721
I assume Sa Ag is working on the assignment to create the RMI application.
By using JDK 1.5 or above, you don't need rmic to generate a stub file as the stub file will be generated automatically.

To run rmic EUStateServer, make sure the class file is in the right directory.
From this command, "rmic EUStatsServer", EUStatsServer.class is supposed to be in the same directory as rmic exeutable file (which is in the same directory as javac, java .... in JDK).
 
jQuery in Action, 2nd edition
 
subject: rmic command : Class file not found
 
Similar Threads
help me to run RMI??
help me to solve java.rmi.UnmarshalException
Problem with rmic
rmic assistance
RMIC -IDL Exception