Java development

To develop programs in Java using the WebSphere MQ Everyplace development kit, you must set up the Java environment as follows:

You can use many different Java development environments and Java runtime environments with WebSphere MQ Everyplace. The system configuration for both development and runtime is dependent on the environment used. WebSphere MQ Everyplace 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 WebSphere MQ Everyplace 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 WebSphere MQ Everyplace.

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:

Note:
These parameters are case sensitive and must be entered exactly as shown.

Sun
- Sun

JB
- Borland JBuilder

MS
- Microsoft(R)

IBM
- IBM

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 then to be run from other directories or to use other Java development kits.



© IBM Corporation 2002. All Rights Reserved