We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JDK 1.8 下载地址:
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
安装步骤:假设下载的JDK文件名是:jdk-8u171-linux-x64.tar.gz
jdk-8u171-linux-x64.tar.gz
1、 将 jdk-8u171-linux-x64.tar.gz 拷贝到/root 目录下,进行解压
[root@localhost ~]# tar -xzvf jdk-8u171-linux-x64.tar.gz
2、将解压出来的文件夹剪切到/usr/share 目录下
[root@localhost ~]# mv jdk1.8.0_171 /usr/share/
3、 设置环境变量
[root@localhost ~]# vi /etc/bashrc #添加下面代码 JAVA_HOME=/usr/share/jdk1.8.0_171 CLASSPATH=$JAVA_HOME/lib:$JAVA_HOME/jre/lib PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH export PATH CLASSPATH JAVA_HOME
4、 使修改立即生效
[root@localhost ~]# source /etc/bashrc
The text was updated successfully, but these errors were encountered:
👍
Sorry, something went wrong.
No branches or pull requests
JDK 1.8 下载地址:
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
安装步骤:假设下载的JDK文件名是:
jdk-8u171-linux-x64.tar.gz
1、 将 jdk-8u171-linux-x64.tar.gz 拷贝到/root 目录下,进行解压
2、将解压出来的文件夹剪切到/usr/share 目录下
3、 设置环境变量
4、 使修改立即生效
The text was updated successfully, but these errors were encountered: