• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem in rmic - stub generation

 
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ?
 
Ranch Hand
Posts: 291
Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanx friend its working now with
>rmic -classpath c:\111 com.RServerImpl
 
Ranch Hand
Posts: 193
Mac OS X Fedora Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you use JDK5.0, there is no need to generate this stub or skeleton.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic