wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes problems with rmic command (studying on headfirst java) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "problems with rmic command (studying on headfirst java)" Watch "problems with rmic command (studying on headfirst java)" New topic
Author

problems with rmic command (studying on headfirst java)

Alex Derek
Ranch Hand

Joined: Apr 10, 2013
Posts: 32

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

Joined: Apr 29, 2013
Posts: 19

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?


Thank You for your time
Bob
Alex Derek
Ranch Hand

Joined: Apr 10, 2013
Posts: 32

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

Joined: Apr 29, 2013
Posts: 19

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

Joined: Oct 13, 2005
Posts: 38508
    
  23
Alex Derek wrote:. . .
still, headfirst java 2nd edition is based on java 6, . . .
Java5, actually.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problems with rmic command (studying on headfirst java)