Wrox Home  
Search P2P Archive for: Go

  Return to Index  

j2ee thread: HellowWorld on pages 45-49


Message #1 by "jie zhu" <j8usa@h...> on Mon, 18 Jun 2001 21:58:24
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
> 
> 

  Return to Index