Build error 'Error running javac.exe compiler' for Java Functions in Plex

Document ID : KB000107116
Last Modified Date : 19/07/2018
Show Technical Document Details
Issue:
After installing Plex 7.2.1 to a new Windows workstation and building functions in Java, the Java build process fails with the build error 'Error running javac.exe compiler' .
Resolution:
Review the System Environment variable setting JAVA_HOME. 
The JAVA_HOME should NOT point to the Bin sub-folder of the JDK installation folder.
For example, assuming it is the 1.8.0_172 version of the JDK:
Should be:   "C:\Program Files\Java\JDK1.8.0_172"
Should NOT be: "C:\Program Files\Java\JDK1.8.0_172\bin"

See this section of the Plex documentation for details on how to install the Java Components for Plex:
https://docops.ca.com/ca-plex/7-2-1/en/installing/how-to-install-and-configure-the-java-components-for-ca-plex#HowtoInstallandConfiguretheJavaComponentsforCAPlex-JAVA_HOMEenvironmentvariable