• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem in rmic - stub generation

 
prasad kulkarni
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is what I am getting :

C:\111\com>rmic RServerImpl
error: File .\RServerImpl.class does not contain type RServerImpl as expected, but type com.RServerImpl. Please remove the file, or make sure it appears in the correct subdirectory of the class path.
error: Class RServerImpl not found.
2 errors

C:\111\com>rmic -classpath c:\111 RServerImpl
error: Class RServerImpl not found.
1 error

my classpath is : "C:\j2sdk1.4.2_04;C:\j2sdk1.4.2_04\jre\lib\setToClassPath;c:\ant\lib;.;D:\DB2\IBM\SQLLIB\java\db2java.zip;D:\DB2\IBM\SQLLIB\java\db2jcc.jar;D:\DB2\IBM\SQLLIB\java\sqlj.zip;D:\DB2\IBM\SQLLIB\java\db2jcc_license_cisuz.jar;D:\DB2\IBM\SQLLIB\java\db2jcc_license_cu.jar;D:\DB2\IBM\SQLLIB\bin;D:\DB2\IBM\SQLLIB\tools\db2XTrigger.jar;D:\DB2\IBM\SQLLIB\java\common.jar;C:\Program Files\Java\jdk1.5.0\bin;D:\bea\weblogic91\server\lib\api.jar;C:\111;"

My files "RServerImpl" & "RServerIF" (both java & class files) are in directory "C:\111\com"

Can anyone tell me, why this is happening ?
 
Edward Harned
Ranch Hand
Posts: 291
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It appears that the name of your file is:
com.RServerImpl

When you use rmic you need to specify the full name of your impl class including all the com. mycompany. etc
 
prasad kulkarni
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanx friend its working now with
>rmic -classpath c:\111 com.RServerImpl
 
Jiafan Zhou
Ranch Hand
Posts: 193
Fedora Linux Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you use JDK5.0, there is no need to generate this stub or skeleton.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic