Building applications in Java

This section describes how to build application programs written in Java to run under Compaq Tru64 UNIX.

Preparing Java programs

Make sure that your WebSphere MQ Client for Java or WebSphere MQ Bindings for Java installation directory is in your CLASSPATH environment variable. For example:

CLASSPATH=/usr/opt/jdk118/lib/classes.zip:/opt/mqm/java/lib: \
          /opt/mqm/samp/mqbind/En_US:.

The following environment variable is required:

LD_LIBRARY_PATH=/opt/mqm/lib

To compile the class MyClass.java, for example, use the command:

$ javac MyClass.java
Note:
If your WebSphere MQ Java program handles large messages, you must increase the maximum Java heap size appropriately using the -mx option of the java command.

For more information on using Java with WebSphere MQ, see the WebSphere MQ Using Java.



© IBM Corporation 1993, 2002. All Rights Reserved