Added lines to set JAVA_HOME in yarn-env.sh - not tested yet.