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.
Was this topic helpful?
15 June 2018