Nav
You are viewing an older version of this topic. To go to a different version, use the version menu at the upper-right. +

To Configure Java JDK (Windows)

  1. In Search, search for System (Control Panel) and select it.

  2. Click Advanced System Settings.

  3. Click Environment Variables.

  4. In System Variables, select the PATH environment variable.

  5. Click Edit.

    If the PATH environment variable does not exist, click New.

  6. In Edit System Variable (or New System Variable), make sure that the JDK /bin directory of the version you want to configure is the first item in your PATH environment variable, and click OK.

    Blank spaces are not allowed when defining a path on Windows.

  7. Click OK.

To verify that your installation was configured correctly, reopen the command prompt window, and type:


         
      
1
> java -version

This should print the version of the java tool.
If the version is other than your desired JDK, or you get the error "java: Command not found", then the JDK is not properly installed.

In this topic: