Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization 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