谁给参谋参谋,java -version后报错
[root@share~]# which java
/home/whodoes/jdk1.6.0_13/bin/java
[root@share~]# echo $JAVA_HOME
/home/whodoes/jdk1.6.0_13
[root@share~]# echo $PATH
/home/whodoes/jdk1.6.0_13/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
[root@share~]# whereis java
java:
[root@share ~]# java -version
-bash: /home/whodoes/jdk1.6.0_13/bin/java: No such file or directory
[root@share~]# file /home/whodoes/jdk1.6.0_13/bin/java
/home/whodoes/jdk1.6.0_13/bin/java: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.5, dynamically linked (uses shared libs), for GNU/Linux 2.2.5, not stripped
[root@share~]# which java
/home/whodoes/jdk1.6.0_13/bin/java
[root@share~]# echo $JAVA_HOME
/home/whodoes/jdk1.6.0_13
[root@share~]# echo $PATH
/home/whodoes/jdk1.6.0_13/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
[root@share~]# whereis java
java:
[root@share ~]# java -version
-bash: /home/whodoes/jdk1.6.0_13/bin/java: No such file or directory
[root@share~]# file /home/whodoes/jdk1.6.0_13/bin/java
/home/whodoes/jdk1.6.0_13/bin/java: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.5, dynamically linked (uses shared libs), for GNU/Linux 2.2.5, not stripped