Added JAVA_HOME for ubuntu.