Running IBM 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 IBM® MQ classes for Java libraries. for more information, see IBM MQ classes for Java libraries.