my dog learned polymorphism*
The moose likes Distributed Java and the fly likes RMI_help 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 "RMI_help" Watch "RMI_help" New topic
Author

RMI_help

vishal sodani
Ranch Hand

Joined: Aug 26, 2000
Posts: 127
I have four class files-interface(Product),class implementing interface(ProductImpl),server program(ProductServer),and client program(ProductClient).All are in one directory.Now,When I run rmic on Implementation class i get error-
rmic ProductImpl
class not found,even though the class exists.Please help.
T Bush
Greenhorn

Joined: Jul 31, 2000
Posts: 13
ProductImpl must extend some deritive of RemoteObject like UnicastRemoteObject.
Hope this helps.


Todd Bush<BR>AIM: RalphWiggam14
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Pls. check the path and classpath.
Hope this will help..
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Tried this?
rmic -d . <packagename.classname>
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Oops, should say
rmic -d . PackageName.ProductImpl
stanley wang
Greenhorn

Joined: Jun 24, 2002
Posts: 12
HI,friend
i have the same question.
how can i do for the path and classpath.
my classpaht="c:\jdk1.3\bin"
but it doesn't work?also error!
Kumar Kausikasa
Ranch Hand

Joined: Jun 04, 2002
Posts: 45
Hi ,
As you are using windows machine, if you set the path where your class files are that is enough.
Or when you running program,
java -classpath yourdirectorypath program
yourdirectorypath is the place hwere class files are.
BTW you made a typo error in the classpath
HTH
Praveen.
 
 
subject: RMI_help
 
Similar Threads
interface
RMI-help!!
interface implementation
unable to run server
UNMARSHALLING EXCEPTION