This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
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

Error when run RMI

 
kien kun
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
C:\Users\kien\Documents\NetBeansProjects\JavaComunication\build\classes\RMI>rmic
-vcompat -keep HelloImpl
error: File .\HelloImpl.class does not contain type HelloImpl as expected, but type RMI.HelloImpl. Please remove the file, or make sure it appears in the correc
t subdirectory of the class path.
error: Class HelloImpl not found.
2 errors


I can't repair it.Can you help me?
Thank you
 
Joanne Neal
Rancher
Posts: 3742
16
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The name of your class is RMI.HelloImpl but you are trying to run a class called HelloImpl
 
kien kun
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Joanne Neal wrote:The name of your class is RMI.HelloImpl but you are trying to run a class called HelloImpl

Thank you.I found my error.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic