Cognos Analytics will not use the JRE embedded in Windows installations if a JAVA_HOME is set
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.