Check that JAVA_HOME refers to a JDK or JRE of the same bitism as the current compilation mode. That is, if using
cob32, JAVA_HOME must be 32 bit; if using
cob64, 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.