#1 use /usr/lib/jvm as JAVA_HOME.