![oracle download java se development kit 7u79 oracle download java se development kit 7u79](https://4.bp.blogspot.com/-9V_ng3CyQj8/UJ6HDp6Yk_I/AAAAAAAAIuk/6y9M__uLFiE/s1600/jdk1_1.jpg)
* 2 /usr/lib/jvm/jdk1.7.0/bin/java 1 manual modeģ /usr/lib/jvm/jdk1.8.0/bin/java 1 manual mode There are 3 choices for the alternative java (providing /usr/bin/java).Ġ /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java 1071 auto modeġ /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java 1071 manual mode
![oracle download java se development kit 7u79 oracle download java se development kit 7u79](http://i.stack.imgur.com/KBuSi.png)
You will see output similar to the one below - choose the number of jdk1.8.0 - for example 3 in this list (unless you have have never installed Java installed in your computer in which case a sentence saying "There is nothing to configure" will appear): $ sudo update-alternatives -config java This answer lists the other executables available. java, javac, javaws are probably the most frequently required. N.B.: Remember - Java JDK has many more executables that you can similarly install as above. Sudo chown -R root:root /usr/lib/jvm/jdk1.8.0 Be sure to use a higher priority if you want Oracle JDK to remain the default.Ĭorrect the file ownership and the permissions of the executables: This will assign Oracle JDK a priority of 1, which means that installing other JDKs will replace it as the default. Sudo update-alternatives -install "/usr/bin/javaws" "javaws" "/usr/lib/jvm/jdk1.8.0/bin/javaws" 1 Sudo update-alternatives -install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk1.8.0/bin/javac" 1 Sudo update-alternatives -install "/usr/bin/java" "java" "/usr/lib/jvm/jdk1.8.0/bin/java" 1
![oracle download java se development kit 7u79 oracle download java se development kit 7u79](https://i.ytimg.com/vi/tSoYwqfmXTM/maxresdefault.jpg)
N.B.: Check carefully this folder name since Oracle seem to change this occasionally with each update. Install Java JDK The manual wayĭownload the 32-bit or 64-bit Linux "compressed binary file" - it has a ".tar.gz" file extension.
#ORACLE DOWNLOAD JAVA SE DEVELOPMENT KIT 7U79 HOW TO#
There is a similar answer on how to install JRE 7.