Java development

To develop programs in Java™ using the MQe development kit, you must set up the Java environment as follows:

You can use many different Java development environments and Java runtime environments with MQe. The system configuration for both development and runtime is dependent on the environment used. MQe includes a file that shows how to set up a development environment for different Java development kits. On Windows systems this is a batch file called JavaEnv.bat, for UNIX systems it is a shell script called JavaEnv. To use this file, copy the file and modify the copy to match the environment of the machine that you want to use it on.

A set of batch files and shell scripts that run some of the MQe examples use the environment file described above, and, if you wish to use the example batch files, you must modify the environment file as follows:

Note: Customized versions of JavaEnv.bat or JavaEnv may be overwritten if you reinstall MQe.

When you invoke JavaEnv.bat on Windows you must pass a parameter that determines the type of Java development kit to use.

Possible values are:

Sun
- Sun
JB
- Borland JBuilder
MS
- Microsoft®
IBM®
- IBM
Note: These parameters are case sensitive and must be entered exactly as shown.

If you do not pass a parameter, the default is IBM.

The JavaEnv shell script on UNIX does not use a corresponding parameter.

On Windows, by default, you must run JavaEnv.bat from the <MQeInstallDir>\java\demo\Windows directory. On UNIX, by default, you must run JavaEnv from the <MQeInstallDir>/Java/demo/UNIX directory. Both files can be modified to allow them to be run from other directories or to use other Java development kits.


Terms of use | WebSphere software

(c) Copyright IBM Corporation 2004, 2005. All rights reserved.