在etc/profile配置好javahome時(shí)候奴璃,在執(zhí)行 source /etc/profile 命定時(shí)候報(bào)出一下錯(cuò)誤
-bash: JAVA_HOME: command not found
-bash: JRE_HOME: command not found
-bash: CLASS_PATH: command not found
這個(gè)是又由于javahome和等于號(hào)空格季蚂,去掉就可以
centos下安裝 可以參考http://www.linuxidc.com/Linux/2016-09/134941.htm