Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Amit Batra
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?
 
Guru Yegnanarayanan
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.
 
Edward Harned
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.
 
William Asher
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.
 
Nitesh Kant
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic