Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RMI_help

 
vishal sodani
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ProductImpl must extend some deritive of RemoteObject like UnicastRemoteObject.
Hope this helps.
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pls. check the path and classpath.
Hope this will help..
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tried this?
rmic -d . <packagename.classname>
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oops, should say
rmic -d . PackageName.ProductImpl
 
stanley wang
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic