Check that JAVA_HOME refers to a JDK or JRE of the same bitism as the current compilation mode. That is, if using
the 32-bit command prompt, JAVA_HOME must be 32 bit; if using
the 64-bit command prompt, JAVA_HOME must be 64 bit.
Note: Java 9 and later is 64 bit only, and so any COBOL compilation to Java byte code that uses a Java 9 JAVA_HOME must be performed
in 64-bit mode.