How Composer Validates an Environment's Java Version
Composer determines which Java is being used in your environment while the microservices are starting. It evaluates your environment in the following sequence. The first Java executable in this sequence that meets minimum requirements is used and validation stops.
The directory in the $JAVA_HOME environment variable path is evaluated to verify that it points to JRE/JDK and its
$JAVA_HOME/bin/java
path contains a valid Java executable that meets the minimum requirements.The
/etc/environment
file is parsed for its JAVA_HOME variable identifying the Java installation directory. This Java installation directory is then evaluated for a valid Java executable that meets the minimum requirements.The
<install-path>/jre
folder is evaluated for a valid Java executable that meets the minimum requirements.The directories listed in the $PATH environment variable are evaluated for a valid Java executable that meets the minimum requirements.
If a Java executable that meets the minimum requirements is not found in this process, an exception occurs and Composer is not started. To install a valid version of OpenJDK, see Manually Install OpenJDK.
Comments
0 comments
Please sign in to leave a comment.