Revert "Set JAVA_HOME, when available"

This reverts commit f7cf26244d2ab84d7477c2bb1eee72ab86ea10f3.