This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
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 Elasticsearch in Action this week in the Big Data 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
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!
I agree. Here's the link:
subject: Cant find my skeleton class file-Rmi Doubt(HFJ)