[root@izuf6fyls0jsr430b2tdr3z ~]# source /etc/profile
[root@izuf6fyls0jsr430b2tdr3z ~]# java -version
java version "1.8.0_11"
Java(TM) SE Runtime Environment (build 1.8.0_11-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.11-b03, mixed mode)
[root@izuf6fyls0jsr430b2tdr3z ~]# cd /usr/lib/jvm
[root@izuf6fyls0jsr430b2tdr3z jvm]# ls
jdk jdk1.8.0_11 jdk-8u11-linux-x64.tar.gz
[root@izuf6fyls0jsr430b2tdr3z jvm]# javac
-bash: javac: command not found
[root@izuf6fyls0jsr430b2tdr3z jdk1.8.0_11]# javac -help
-bash: javac: command not found
[root@izuf6fyls0jsr430b2tdr3z jvm]# cd jdk1.8.0_11/
[root@izuf6fyls0jsr430b2tdr3z jdk1.8.0_11]# ls
bin db javafx-src.zip lib man release THIRDPARTYLICENSEREADM
COPYRIGHT include jre LICENSE README.html src.zip THIRDPARTYLICENSEREAD
[root@izuf6fyls0jsr430b2tdr3z jdk1.8.0_11]# cd bin
[root@izuf6fyls0jsr430b2tdr3z bin]# ls
appletviewer javadoc jcontrol jmc.ini keytool schemagen
ControlPanel javafxpackager jdb jps native2ascii serialver
extcheck javah jdeps jrunscript orbd servertool
idlj javap jhat jsadebugd pack200 tnameserv
jar java-rmi.cgi jinfo jstack policytool unpack200
jarsigner javaws jjs jstat rmic wsgen
java jcmd jmap jstatd rmid wsimport
javac jconsole jmc jvisualvm rmiregistry xjc
Java_HOME=/usr/lib/jvm/jdk1.8.0_11
JRE_HOME=/usr/lib/jvm/jdk1.8.0_11/jre
CLASS_PATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JRE_HOME/lib
PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin
export JAVA_HOME JRE_HOME CLASS_PATH PATH
这个java真的真的装了好多天都没有装好
小白在此万分感谢,万分感谢
看清 java_HOME
还是 JAVA_HOME
感恩,你指出来呢就感觉错误好明显,但没指出来之前自己怎么也看不到错误