How does XCOM use Java internally and is it possible to use OpenJDK instead of the version of Oracle Java that XCOM installs ?
In the latest XCOM for Linux release 12.0, XCOM supports OpenJDK and and has stopped redistributing Oracle Java with product installations.
For both versions 11.6 and 12.0, XCOM does not use Java in its core functionality for the transfer of data between systems but does use it in some features. See article: Where does XCOM use Java
So per that article post-install even if not using the XCOM features which require Java like the GUI, XCOM still needs Java to apply/uninstall maintenance or uninstall the product.
XCOM for Linux 11.6 SP01
Switching to OpenJDK for is now is possible and is supported. IMPORTANT: Use only Java 8 (1.8.xxx) which have been tested with XCOM. Avoid higher major versions (Java 11 or later) that may pose problems.
Two changes are required:
NOTE: For any release where XCOM has installed Oracle Java, the Uninstaller looks for Java at the same location as the Installer and removing the supplied $XCOM_HOME/JRE directory can therefore cause problems with Uninstalling the product. So, it is suggested to just "archive" $XCOM_HOME/JRE in case a clean up of the install directory is required for whatever reason.
XCOM for Linux 12.0
XCOM for Linux 12.0 no longer installs Oracle Java and installing OpenJDK prior to the XCOM install is a requirement (Address Software Requirements)
A change of Java version post-install can be done using the steps: