Running WebSphere MQ classes for Java applications

If you write an application (a class that contains a main() method), using either the client or the bindings mode, run your program using the Java interpreter.

Use the command:

java -Djava.library.path=library_path MyClass
where library_path is the path to the WebSphere® MQ classes for Java libraries (see The WebSphere MQ classes for Java libraries).