Setting Java variables on Windows

JAVA_HOME and PATH variables are required for the operating system to find the required Java programs and utilities.

Before you begin

Ensure that the required Java version is installed on all nodes in your topology.

If Java is not installed on your install system, refer to the appropriate documentation to install Java before setting JAVA_HOME and PATH. For example, to install IBM JDK (Windows or Linux), see the IBM JDK online documentation.

Procedure

To set Java variables on Windows, complete the following steps:

  1. Download or save the appropriate JDK version for Windows.
    Important: You can download the JDK from Passport Advantage or Fix Central or save it from the disk.
  2. Right-click the Computer icon on your desktop and select Properties.
    Important: Names of some icons may vary based on your Windows version.
  3. Click Advanced system settings.
  4. Click Environment variables.
  5. Under User variables, click New.
  6. Enter JAVA_HOME as the variable name.
    Attention: When you add the bin directory for the IBM JDK to the PATH environment variable, ensure that you add it before any other directory currently listed in the PATH value that might have a Java executable. Also, if the directory that you are adding to the PATH or setting as JAVA_HOME has a space in the path, either contain the path in quotes or escape the space by preceding the path with \.
  7. Enter the path to the JDK as the variable value. For example, C:\Program Files (x86)\IBM\Java70\.
  8. Click OK.
  9. Locate the PATH variable.
  10. Append the path to the JDK (up to the bin folder) as the PATH value. For example, C:\Program Files (x86)\IBM\Java70\bin.
    Important: Use a semicolon to separate the JDK path from the other paths that are defined.
  11. Repeat the same for System variables.
  12. Click OK.