• 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

Cant find my skeleton class file-Rmi Doubt(HFJ)

 
Ranch Hand
Posts: 361
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HI,
I was trying the RMI example given in HFJ. I did everything exactly as directed, However when I run the rmic command, i see in my directory (where Ive saved everything) the stub file(MyRemoteImpl_Stub.class) that has been created but Not the MyRemoteImpl_skel.class file.

Any Ideas or suggestions what is going on and how I can fix this?
 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
make sure you have given the correct classpath !!!
 
Amit Batra
Ranch Hand
Posts: 361
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I saved eveything in 1 directory. Everything compild fine. My class path is set as an environment variable. Im not setting any paths manually. I did a search too and tried searching for the file but windows couldnt find it either.
 
Amit Batra
Ranch Hand
Posts: 361
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok. Got it to work with JDK1.4. Apparently theres something wrong with my JDK1.5. I guess its broken, wont generate skeleton files. Thanks.
 
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
You don't need skeleton files. Haven't needed such things since JDK1.2. With 1.5 you don't even need rmic to create the stubs.
 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Fast forward almost three years later in this thread...

I am working through chapter 18 in Head First Java and also cannot find the MyRemoteImpl_Skel.class file that was supposed to be generated by rmic. Contributer Edward Harned said that rmic is no longer needed to create stub files. Does that mean that stubs - and skeletons - are not necessary for successful RMI, or is RMI itself no longer necessary? Is the information on RMI in chapter 18 no longer valid? Without a generated skeleton class, I don't see how I can get the samples to work.
 
Bartender
Posts: 1638
IntelliJ IDE MySQL Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
DontWakeTheZombies.
If you want to ask a question, create a new topic.

RMIC does not generate skeletons. Since, jdk 1.2, RMI uses stubs on both communication sides.
jdk 5 removes the requirement of a stub too by using dynamic proxies.
You need to grab the rmi tutorial on java website.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic