It took me some time to figure out how to define the JAVA_HOME for the version check. Therefore I would like to extend the documentation.