IBM Support

Cognos Analytics will not use the JRE embedded in Windows installations if a JAVA_HOME is set

Technote (troubleshooting)


Installations of Cognos Analytics on Windows include a Java run time environment (JRE).

This JRE will not be used if there is JAVA_HOME environment variable set to a different location and Cognos is started as a Windows service.

Resolving the problem

If you want to start Cognos Analytics as Windows service and use the JRE that is bundled with it, then you cannot have a JAVA_HOME environment variable set to a location other than the bundled JRE.

To remove or change an environment variable permanently in Windows, start the "Control Panel" ⇒ "System" ⇒ "Advanced system settings" ⇒ Switch to "Advanced" tab ⇒ "Environment variables" ⇒ Choose "System Variables" (for all users) or "User Variables" (for this login user only) ⇒ On the "JAVA_HOME" variable choose "Edit" to change the location or "Delete" to remove the variable.

If JAVA_HOME is unset, Cognos Analytics servers on Windows will always use their embedded JRE.

Document information

More support for: Cognos Analytics

Software version: 11.0

Operating system(s): Windows

Reference #: 1973643

Modified date: 08 March 2016