Last active
December 18, 2015 01:29
-
-
Save rkaneko/5704109 to your computer and use it in GitHub Desktop.
Install Oracle JDK on Ubuntu with aptitude .
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ java -version | |
java version "1.7.0_21" | |
OpenJDK Runtime Environment (IcedTea 2.3.9) (7u21-2.3.9-0ubuntu0.12.04.1) | |
OpenJDK Server VM (build 23.7-b01, mixed mode) | |
## optional begin (If you can't add-apt-repository command , do next .) | |
# we must install python-software-properties in order to install 'software-properties-common' | |
$ sudo aptitude install python-software-properties | |
# we must install the package 'software-properties-common' in order to use add-apt-repository | |
$ sudo aptitude install software-properties-common | |
# sudo aptitude install add-apt-repository | |
## optional end | |
# add ppa | |
$ sudo add-apt-repository ppa:webupd8team/java | |
$ sudo aptitude update | |
$ sudo aptitude search oracle-java | |
p oracle-java6-installer - Oracle Java(TM) Development Kit (JDK) 6 | |
p oracle-java6-set-default - Set Oracle JDK 6 as default Java | |
v oracle-java7-bin - | |
v oracle-java7-fonts - | |
i oracle-java7-installer - Oracle Java(TM) Development Kit (JDK) 7 | |
v oracle-java7-jdk - | |
v oracle-java7-jre - | |
v oracle-java7-plugin - | |
p oracle-java7-set-default - Set Oracle JDK 7 as default Java | |
v oracle-java8-bin - | |
v oracle-java8-fonts - | |
p oracle-java8-installer - Oracle Java(TM) Development Kit (JDK) 8 | |
v oracle-java8-jdk - | |
v oracle-java8-jre - | |
v oracle-java8-plugin - | |
p oracle-java8-set-default - Set Oracle JDK 8 as default Java | |
$ sudo aptitude install oracle-java7-installer | |
$ java -version | |
java version "1.7.0_21" | |
Java(TM) SE Runtime Environment (build 1.7.0_21-b11) | |
Java HotSpot(TM) Server VM (build 23.21-b01, mixed mode) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment