安装包:java-7-openjdk-amd64.tar.gz
使用方法
1. 拷贝至服务器/个人电脑
2. 解包
mkdir /opt/jdk/
tar -zxvf java-7-openjdk-amd64.tar.gz -C /opt/jdk/
3. 配置编译环境
JAVA_HOME=/opt/jdk/java-7-openjdk-amd64
PATH=$JAVA_HOME/bin:$PATH
CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export JAVA_HOME
export PATH
export CLASSPATH
$ java -version
java version "1.7.0_121"
OpenJDK Runtime Environment (IcedTea 2.6.8) (7u121-2.6.8-1ubuntu0.12.04.3)
OpenJDK 64-Bit Server VM (build 24.121-b00, mixed mode)
1