wood burning stoves 2.0*
The moose likes Distributed Java and the fly likes Cant find my skeleton class file-Rmi Doubt(HFJ) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "Cant find my skeleton class file-Rmi Doubt(HFJ)" Watch "Cant find my skeleton class file-Rmi Doubt(HFJ)" New topic

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

Amit Batra
Ranch Hand

Joined: Mar 04, 2006
Posts: 361
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

Joined: Jun 14, 2006
Posts: 12
make sure you have given the correct classpath !!!
Amit Batra
Ranch Hand

Joined: Mar 04, 2006
Posts: 361
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

Joined: Mar 04, 2006
Posts: 361
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

Joined: Sep 19, 2005
Posts: 291

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.

Ed's latest article: A Java Parallel Calamity http://coopsoft.com/ar/Calamity2Article.html
William Asher

Joined: Jul 23, 2009
Posts: 25
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

Joined: Feb 25, 2007
Posts: 1638

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.

apigee, a better way to API!
Consider Paul's rocket mass heater.
subject: Cant find my skeleton class file-Rmi Doubt(HFJ)
Similar Threads
Head First Java - puzzle survey
Chat Client and file transfer
Regarding serialization
Object serialization and order
books for scwcd?