ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

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


Article ID: 107116


Updated On:


CA Plex


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' .


Component: CPLEX


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: