LINUX -bash java command not found

Linux系统是由于设置JAVA环境变量时设置PATH属性导致command not found错误,PATH属性设置如下:

vi /etc/profile

JAVA_HOME=/usr/java/jdk1.6.0_32 根据自己的安装路径修改
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 生效设置

家目录中 .bash_profile

时间: 2024-10-15 06:12:12

LINUX -bash java command not found的相关文章

解决 linux -bash: telnet: command not found

输入命令telnet提示  linux -bash: telnet: command not found 解决方法: yum list telnet*   查看telnet相关的安装包 yum install telnet-server 安装telnet服务 yum install telnet.* 安装telnet客户端 然后运行telnet正常了

Linux Bash Scripting - Command Chaining & Command lists

# this is to show you how to execute a series of commands in one strike. $ clear; cd /; ls -l; echo "You are in $PWD"; echo "Time to go back home"; cd ~; # use semi colon between each command. # There is also command lists, which is fo

-bash: java: command not found 解决方法

-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  CLASS

bash: java: command not found

[[email protected] ~]# java -version -bash: java: command not found 出现上面问题,解决方法: [[email protected] ~]# source /etc/profile 最后在测试是否安装成功: [[email protected] ~]# java -version java version "1.8.0_241" Java(TM) SE Runtime Environment (build 1.8.0_2

Linux bash: scp: command not found的问题记录

1,scp报错 [[email protected] soft]# scpjdk-7u55-linux-x64.tar.gz 192.168.121.246:/soft/ [email protected]'s password: bash: scp: command not found lost connection [[email protected] soft]# 2,调试-v [[email protected] soft]# scp -vjdk-7u55-linux-x64.tar.g

linux -bash: ipconfig: command not found 解决方法

问题: ipconfig: command not found [[email protected] root]# ipconfig -bash: ipconfig: command not found 方法: 1.安装好CentOS5.5后,ipconfig找不到那说明没有将ipconfig命令配置到环境变量. 2.测试下结果echo $PATH,果然/sbin这个主要目录不在PATH. [[email protected] network-scripts]# echo $PATH /usr/

linux bash XXX command not found

1.最小化安装了centos, 但是使用ifconfig命令时候出现"bash ifconfig command not found" .解决方法:yum install net-tools.x86_64" . 原文地址:https://www.cnblogs.com/EikiXu/p/9411338.html

linux bash: sqlplus: command not found 错误处理

在oracle用户下 ,执行sqlplus命令,抛出如上错误.   解决办法:   1.su oracle   2.cd /home/oracle   3. 执行命令 source .bash_profile   这样就可以了.

linux - man 提示:-bash: man: command not found

在执行man命令时,提示:-bash: man: command not found 原因1:没有配置path环境 解决:vi /etc/profile JAVA_HOME=/usr/java/jdk1.7.0_40 CLASSPATH=.:.JAVA_HOME/lib.tools.jar PATH=.JAVA_HOME/bin:.PATH:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin export