-----------------------------------------------------------------------------------------------------------------------------------------------
个人梳理
-----------------------------------------------------------------------------------------------------------------------------------------------
1.下载Linux版jdk
2.解压到/usr/java 下 tar zxvf jdk.1.8.tar.gz
3.配置环境变量编辑/etc/profile在底部增加代码
JAVA_HOME=/usr/java/jdk1.8.0_60
PATH=$JAVA_HOME/bin:$PATH
CLASSPATH=$JAVA_HOME/jre/lib/ext:$JAVA_HOME/lib/tools.jar
export PATH JAVA_HOME CLASSPATH
4.测试是否安装成功
4.1 javac编译java文件
报错:-bash: /usr/java/jdk1.8.0_144/bin/javac: /lib/ld-linux.so.2: bad ELF interpreter: 没有那个文件或目录