-bash: java: command not found
在卸载jdk之后,会报错
就是配置环境变量出了问题,
JAVA_HOME=/usr/java/jdk1.8.0_25
PATH=$PATH:$JAVA_HOME/bin:/usr/bin:/usr/sbin:/bin:/sbin:/usr/X11R6/bin
CLASSPATH=.:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jar
export JAVA_HOME PATH CLASSPATH
source /etc/profile 生效设置
本文出自 “ghost” 博客,请务必保留此出处http://fangwei009.blog.51cto.com/5234706/1637563