ubuntu 에서 java 설치한거 지우기
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.13.0-36-generic", arch: "amd64", family: "unix"
ubuntu@ip-172-31-15-63:~/service_repos/service$ sudo update-alternatives --display java
java - auto mode
link currently points to /usr/lib/jvm/java-7-oracle/jre/bin/java
/usr/lib/jvm/java-7-oracle/jre/bin/java - priority 1
slave java.1.gz: /usr/lib/jvm/java-7-oracle/man/man1/java.1.gz
Current 'best' version is '/usr/lib/jvm/java-7-oracle/jre/bin/java'.
ubuntu@ip-172-31-15-63:~/service_repos/service$ java -version
java version "1.7.0_67"
Java(TM) SE Runtime Environment (build 1.7.0_67-b01)
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)
ubuntu@ip-172-31-15-63:~/service_repos/service$ sudo update-alternatives --remove "java" /usr/lib/jvm/java-7-oracle/jre/bin/java
ubuntu@ip-172-31-15-63:~/service_repos/service$ sudo update-alternatives --display java