• 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 with RMIC

 
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to RMIC a class called RMICreateDBImpl.
It resides in package com.createdb.rmi
When I use the command
rmic com.createdb.rmi.RMICreateDBImpl
I get the error:
error: Class com.createdb.rmi.RMICreateDBImpl not found.
When I use the command
rmic RMICreateDBImpl
I get the error:
error: File .\RMICreateDBImpl.class does not contain type RMICreateDBImpl as expected, but type com.
createdb.rmi.RMICreateDBImpl. Please remove the file, or make sure it appears in the correct subdire
ctory of the class path.
error: Class RMICreateDBImpl not found.
Now I realize that the second approach is wrong but, hey I was desperate.
Any idea what I could be doing wrong?
Thank You.
 
Ranch Hand
Posts: 1873
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi Bill
if u 've package com.createdb.rmi then i guess i have the directory hierarchy com/createdb/rmi as well, right?
in that case, u have to be in the "parent" of the "com" directory and do,
rmic com.createdb.rmi.RMICreateDBImpl
it would create stub/skel in this "parent" directory.
i tried with following,
i have dir,
/temp/myrmi
i put all *.java in myrmi. i did "cd temp" and then
rmic myrmi.CalculatorImpl
it worked.
if that doesn't work then probably u'd have to add "." to the CLASSPATH.
good luck.
regards
maulin
 
Bill White
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you very much! You are da man!! I repeat you are da man!!
 
reply
    Bookmark Topic Watch Topic
  • New Topic