Resolve Error: JAVA_HOME Not Defined, Create JAVA_HOME Environment Variable

Use this article to create a JAVA_HOME variable to prevent the Java_Home environment variable is not defined message from appearing in the package Error Log Details window or Windows Event Viewer.

 

  1. Connect to the server producing the above error and navigate from the Start Menu to Computer. Right-click Computer and select Properties.

  2. Using the Control Panel System window, select Advanced System Settings.

  3. Select Environment Variables... in the System Properties window.

    Graphical user interface, text, application, email

Description automatically generated

  4. Under System Variables select the New button

    Graphical user interface, application

Description automatically generated

  5. In the variable name field, type JAVA_HOME and set the path to the following folder:

    C:\Program Files (x86)\Java\jre7\bin

     

  6. Click OK to close the window and create the variable.

    Graphical user interface, application

Description automatically generated

  7. Depending on the 64-bit Java version (for example, jre7, jre8, or newer), the installation folder can be found in Program Files not Program Files (x86).

  8. Reboot the server for the changes to take effect.