Before you run HelloClient, you should run "java RegisterIt". And then
run "java HelloClient localhost" as indicated in the text.
> Hi. I am new in Java. Could you please tell me how can I compile and
run "HelloWorld" on Pages 45-49?
>
> I did it this way:
>
> put all code of the book in c:\jtest;
> open a command window, then:
> c:\jtest>javac HelloServer.java
>
> c:\jtest>rmic ?v1.2 HelloSever
>
> open another command window, and:
> c:\jtest>javac RegisterIt.java
>
> c:\jtest>rmiregistry ?J-Djava.security.policy=registerit.policy
>
> open a third command window, then:
> c:\jtest>javac HelloClient
>
> c:\jtest>java ?Djava.security.policy=registerit.policy HelloClient
>
> But, it does not work.
>
> Could you help me on this?
>
>
>
> Thanks.
>
> Jack
>
>