Export JAVA_HOME if available.