Sun Java System Message Queue 4.1 Developer's Guide for Java Clients

ProcedureTo Compile and Run the HelloWorldMessage Application

  1. Make the directory containing the application your current directory.

    The Message Queue example applications directory on Solaris is not writable by users, so copy the HelloWorldMessage application to a writable directory and make that directory your current directory.

  2. Compile the HelloWorldMessage application:


    This creates the file HelloWorldMessage.class in your current directory.

  3. Run the HelloWorldMessage application:

    java HelloWorldMessage

    The program should display the following output:

        Sending Message: Hello, World!
        Received Message: Hello, World!