ubuntu 配置jdk

  1. download jdk-8u91-linux-x64.tar.gz
  2. 解压到/opt/jdk/jdk1.8.0_91/
  3. 配置环境变量
sudo gedit /etc/profile  
export JAVA_HOME=/opt/jdk/jdk1.8.0_91 
export JRE_HOME=/opt/jdk/jdk1.8.0_91/jre  
export PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin  
export CLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/jre/lib:$CLASSPATH  
  1. 让配置生效
source /etc/profile

原创链接:https://www.cnblogs.com/wanthune/p/11837249.html

ubuntu 配置jdk

上一篇:Linux awk命令


下一篇:在虚拟机Ubuntu18.04系统中安装hadoop-2.7.3的过程(面向纯新手)