Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problems with rmic command (studying on headfirst java)

 
Alex Derek
Ranch Hand
Posts: 32
Mac OS X Safari Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello World! ;)

i was practicing on an exercise explained in the book (page 618 for who has it).
For the others: i have created a very simple remote service... create a remote interface, implemented in a remote class and create client class to send request. On the code side everything is ok.
compiled it: ok.
then run rmic on the remote implemented interface and... it should create two files RemoteImplemented_skeleton and RemoteImplemented_stub.

Now, my problem is... that it creates only the _stub one....

googled the problem, found and old topic at javaRanch, solved partially ( with -vcompat command) but i also read that this command and _skeleton are no more necessary...
so... first question...
1) what does it mean _skeleton is no more necessary in practice?

however, i created my _skeleton file. tried to run but... it gives me a Malformed URL excpetion...... arghhhh

i post here the code i was using...
first class
implementing an interface


second class
the one that make me suffer a lot


any ideas where's the error?
p.s. i work on a mac with macosx10.6

thanks
 
bob von ilten
Greenhorn
Posts: 19
Linux Mac OS X MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

Just a beginner myself, but from what I can find the skeleton class is not created since java 1.2. As I understand it the skeleton class handles the server side while the stub handles the client side?
 
Alex Derek
Ranch Hand
Posts: 32
Mac OS X Safari Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes, exactly.
still, headfirst java 2nd edition is based on java 6, so the 1.2 version is long gone...
why put in an exercise that it won't go the right way?
anyway... im still wading in the dark waters of ignorancy...
 
bob von ilten
Greenhorn
Posts: 19
Linux Mac OS X MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well I'm wading along with you :-) I haven't gotten that far in the book yet, but I have gotten far enough to realize
that the water is going to a lot deeper before it starts to go down. I will come back to this thread should I have any
epiphanies when I get to page 618.
 
Campbell Ritchie
Sheriff
Posts: 48652
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Alex Derek wrote:. . .
still, headfirst java 2nd edition is based on java 6, . . .
Java5, actually.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic