Win a copy of Java Database Connections & Transactions (e-book only) this week in the JDBC forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

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

 
Ranch Hand
Posts: 361
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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 Java MySQL Database
  • Mark post as helpful
  • send pies
  • 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 listen to Steve. Just read this tiny ad:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!