Failed to retrieve environment variable “JAVA_HOME”

Product:
Cognos Controller 10.2.1 Fix Pack 2
Microsoft Windows 2012 Server

Problem:
After installation of Cognos Controller 10.2.1 Fix Pack 2 on a existing Cognos Controller 10.2.1 installation the Windows services are missing:
IBM Cognos Controller Java Proxy
IBM Cognos Controller User Manager

Maybe because the service is set to use a windows account different from the person logged in to the server doing the installation – can caused this error.

Error in log file isconfig-UPDATER_CNTRL-20151124_1249.log:

Error: Failed to retrieve environment variable “JAVA_HOME”.
==== Component: ccrconfigappserver ====
Setup File: ‘C:\Program Files\ibm\cognos\ccr_64\bin\wct\ccrconfigappserver.xml’
Macro Definition: ‘InstallDir’ = ‘C:\Program Files\ibm\cognos\ccr_64’

Solution:
1. Reboot the Controller application server.

If this fails to solve the problem, go to step 2.

2. Logon to the Controller application server as a Windows administrator
3. Launch a command prompt (START – RUN – “CMD” )
4. Type the following command:

sc create frLicServer binpath= “C:\Program Files\ibm\cognos\ccr_64\server\FrLicServer.exe” DisplayName= “IBM Cognos Controller User Manager” depend= RpcSs start= auto

5. Type the following command:

sc create “IBM Cognos Controller Java Proxy” binpath=”C:\Program Files\ibm\cognos\ccr_64\server\CCRProxy.exe” DisplayName=”IBM Cognos Controller Java Proxy” depend=RpcSs start=auto

More Information
http://www-01.ibm.com/support/docview.wss?uid=swg24041193
http://www-01.ibm.com/support/docview.wss?uid=swg21680788
http://www-01.ibm.com/support/docview.wss?uid=swg21602419