Use Eclipse facilities to configure
the environment to run your CMP applications.
Update the CLASSPATH environment
variable:
- In your Eclipse environment, select . The New Project wizard opens.
- Select Java Project from the options
displayed. Click Next. The New
Java Project window opens.
- Enter a name for your new project. Click Next.
- Select the Libraries tab, and click Add
External Jars.
- To set up the build environment, navigate to
the install_dir/classes subdirectory. For example, for Version 8.0.0.0 on Windows 32-bit operating system
editions, navigate to the directory C:\Program Files\IBM\MQSI\8.0.0.0\classes. Select the file ConfigManagerProxy.jar,
and click Open. The file is added to the list
in the window for the Libraries tab.
- When you have added the file ConfigManagerProxy.jar to
the build path, set up the runtime environment. Click Add
External Jars again, and navigate to the WebSphere_MQ_installation_directory/java/lib subdirectory. For example, on Linux on x86,
navigate to the directory /opt/mqm/java/lib. Select the file com.ibm.mq.jar, and click Open.
This file is also added to the list.
For more information
about the WebSphere® MQ Classes for Java™, see the Using Java section in the WebSphere MQ information center.
- Click Finish to close the New
Project wizard.
Next: Use the Eclipse development
tools to build and run your CMP applications.