Ubuntu 16.0.4 openjdk 7 설치방법

by lizard2019 posted Dec 19, 2019
?

Shortcut

PrevPrev Article

NextNext Article

ESCClose

Larger Font Smaller Font Up Down Go comment Print

설치 방법

$ sudo add-apt-repository ppa:openjdk-r/ppa  
$ sudo apt-get update   
$ sudo apt-get install openjdk-7-jdk  

자바 버전이 여러개 설치되어 있는 경우

$ update-java-alternatives --list
java-1.7.0-openjdk-amd64       1071       /usr/lib/jvm/java-1.7.0-openjdk-amd64
java-1.8.0-openjdk-amd64       1081      & /usr/lib/jvm/java-1.8.0-openjdk-amd64
$ sudo update-java-alternatives -s java-1.7.0-openjdk-amd64

 

자바 버전 확인

$ java -version
java version "1.7.0_95"
OpenJDK Runtime Environment (IcedTea 2.6.4) (7u95-2.6.4-3)
OpenJDK 64-Bit Server VM (build 24.95-b01, mixed mode)

$ javac -version
javac 1.7.0_95
TAG •

Articles

1 2