Compiling and Running the Hello World Application

At this point, you've written the Hello.idl file, run the idltojava compiler on it, and you've written the code for the client and server.

Compiling the Client Application

Now you'll compile the application. The steps to do this are as follows:

  1. Compile HelloClient.java:

    javac HelloClient.java HelloApp\*.java
    
  2. Correct any errors in your file and recompile if necessary.

  3. You should see HelloClient.class in the project directory.

Compile the Server

The following are the steps to compile the server application:

  1. Compile HelloServer.java:

    javac HelloServer.java HelloApp\*.java
    
  2. Correct any errors in your file and recompile if necessary.

  3. You should see HelloServer.class and HelloServant.class in the project ...

Get JavaBeans Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.