Neither the JAVA_HOME nor the JRE_HOME environment variable is defined after tomcat upgrade

You are receiving the following message when attempting to verify the version after your recent Tomcat upgrade.

>cd C:\Program Files (x86)\SAP BusinessObjects\tomcat\bin

C:\Program Files (x86)\SAP BusinessObjects\tomcat\bin>version.bat
Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
At least one of these environment variable is needed to run this program

Solution

To update your Java settings, follow these steps:

  • Open the tomcat\bin directory.
  • Open bobjenv.bat in a text editor and update the JAVA_HOME parameter with your specific path.
set JAVA_HOME=C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\win64_x64\sapjvm\
  • Restart the Tomcat service to apply the changes.

Note: You can refer to SAP Note 3422418 – Neither the JAVA_HOME nor the JRE_HOME environment variable is defined while running version.bat after tomcat upgrade.

    You May Also Like

    Leave a Reply?