Running the Java "HelloWorld" application

From a command prompt, set up your classpath to refer to the WebSphere MQ Everyplace class files. These are available in the Java directory, in which you installed the Websphere MQ Everyplace product.

Ensure that your shell has the ability to create and modify the ./QueueManagers directory on your system. If it does not have this ability, you should change the source of the examples.helloworld programs, such that they refer to an accessible directory, and re-compile the java code.

Invoke the Configure program to create the queue manager. The syntax will depend on the Java Virtual Machine (JVM) you use. The IBM JVM is invoked using the "java" command, for example java examples.helloworld.Configure. This creates the queue manager on disk.

Run the java examples.helloworld.Run hello world program. This puts a message to a local queue, gets the message back and displays part of it.

You can now destroy the queue manager on the disk using java examples.helloworld.Unconfigure.

Refer to Running Applications, to understand how to set up an environment, which runs WebSphere MQ Everyplace applications.



© IBM Corporation 2002. All Rights Reserved