请教各位大侠一个奇怪的问题?

minghuitian 2004-02-19 02:22:08
小弟编写的一个分布式数据库程序中利用了JDK中的RMI技术,但小弟利用
rmic ResourceManagerImpl 生成ResourceManagerImpl_Stub.class文件,但是系统提示:

D:\project\transaction>rmic ResourceManagerImpl
error: File D:\project\transaction\ResourceManagerImpl.class does not contain type ResourceManagerImpl.class as expected,but type transaction.ResourceMangerImpl.Please remove the file, or make sure it appears in the correct subdirectory of the class path.
error: Class ResourceManagerImpl not found.
2 errors.

其中小弟的工程的文件*.java和编译生成的*.class文件都在D:\project\transaction文件夹中,其中ResourceManagerImpl是transaction包中的一个类,而ResourceManagerImpl.class文件就在这个目录中,系统却说找不到,在classpath中也设置了这个目录了,小弟实在不知怎么回事,小弟试了许多次,但是都不能正确生成*_Stub.class文件,不知是怎么回事,望各位好心的大侠指点小弟一番,小弟不胜感激.谢谢!
...全文
44 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复

62,614

社区成员

发帖
与我相关
我的任务
社区描述
Java 2 Standard Edition
社区管理员
  • Java SE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧