home *** CD-ROM | disk | FTP | other *** search
/ Internet News 1999 October / INEWS_10_CD.ISO / pc / jdk / jdk1.2.2 / docs / guide / idl / examples / hello / README < prev   
Encoding:
Text File  |  1999-09-19  |  900 b   |  45 lines

  1. <HTML>
  2. <HEAD><TITLE>README for hello Example</TITLE></HEAD>
  3. <BODY>
  4. <H1><CENTER>Hello Example README</CENTER></H1>
  5. <HR>
  6. <P>
  7. </P>
  8.  
  9. Note that these instructions use a slash (/) for path names.  
  10. For Windows 95 or NT, you should substitute a backslash (\).
  11. <H2>Steps for building the hello program</H2><BR>
  12. <UL>
  13.  
  14.  
  15. <LI> Run <TT>idltojava</TT> on the IDL interface
  16. to generate stubs and skeletons:
  17. <PRE>
  18.   idltojava hello.idl
  19. </PRE>
  20. <LI> Compile all the <TT>.java</TT> files
  21. <PRE>
  22.   javac *.java HelloAPP/*.java
  23. </PRE>
  24. </UL>
  25. <P> <BR>
  26. <P> <BR>
  27. <H2>Steps for running the hello program</H2><BR>
  28. <P>
  29. <UL>
  30.  <LI>Make sure the name server is running
  31.  <PRE>
  32.   tnameserv -ORBInitialPort 1050 &
  33. </PRE>
  34. <LI> Run the Hello Server
  35. <PRE>
  36.   java helloServer -ORBInitialPort 1050
  37. </PRE>
  38. <LI> Run the Hello Client from a different shell than the server
  39. <PRE>
  40.   java helloClient -ORBInitialPort 1050
  41.  
  42. </PRE>
  43. </BODY>
  44. </HTML>
  45.