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.
Compile the HelloWorldMessage application:
javac HelloWorldMessage.java |
This creates the file HelloWorldMessage.class in your current directory.
Run the HelloWorldMessage application:
java HelloWorldMessage |
The program should display the following output:
Sending Message: Hello, World! Received Message: Hello, World! |