导航

ubuntu14.04 JDK安装

Posted on 2016-10-11 14:45  Fundyqds  阅读(134)  评论(0编辑  收藏  举报

JDK7 安装

  1. 1 sudo apt-get install openjdk-7-jdk
  2. 2 设置安装环境
    在/etc/profile中追加:
# Java support #
export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
export JRE_HOME=${JAVA_HOME}/jre  
export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH
export CLASSPATH=$CLASSPATH:.:$JAVA_HOME/lib:$JAVA_HOME/jre/lib

JDK8 安装

http://ubuntuhandbook.org/index.php/2015/01/install-openjdk-8-ubuntu-14-04-12-04-lts/