ae8c93de6a
When testing for the JAVA_HOME environment variable, expand potential symlinks first. This is almost guaranteed to be the case on all modern Linux distributions putting the JDK / JRE behind update-alternatives to be able to select the *current* version [0], e.g. on Fedora: $ ls -l $JAVA_HOME lrwxrwxrwx. ... /usr/lib/jvm/java -> /etc/alternatives/java_sdk [0] https://linux.die.net/man/8/update-alternatives