-bash: java: command not found 解决方法
2017-02-17 14:36
1351 查看
-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
在卸载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
相关文章推荐
- Linux -bash: java: command not found 解决方法
- -bash: java: command not found 解决方法
- -bash: pecl: command not found的解决方法
- bash: sqlplus: command not found 解决方法
- -Bash: Unzip: Command Not Found解决方法 安装unzip
- bash scp command not found的解决方法
- 编译Android,遇到Your version is: /bin/bash: java: command not found.错误的解决
- bash: sqlplus: command not found 解决方法
- bash: service: command not found(service命令未找到的) 错误的解决方法
- -bash: wget: command not found的两种解决方法
- bash: ssh: command not found解决方法
- bash: sqlplus: command not found 解决方法
- 使用adb shell 出现bash: adb: command not found...问题的解决方法
- bash: service: command not found 错误的解决方法
- bash: sqlplus: command not found 解决方法
- bash: service: command not found 错误的解决方法
- bash scp command not found的解决方法
- 解决bash: mysql: command not found 的方法
- bash: sqlplus: command not found 解决方法
- bash command not found解决方法