Created
December 3, 2014 21:43
-
-
Save PavelBass/9ec48a69e5793ac43a8b to your computer and use it in GitHub Desktop.
Oracle JDK install
This file contains hidden or 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
# wget --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u25-b17/jdk-8u25-linux-x64.tar.gz | |
su | |
mkdir /opt/jdk | |
tar -zxf jdk-8u5-linux-x64.tar.gz -C /opt/jdk | |
update-alternatives --install /usr/bin/java java /opt/jdk/jdk1.8.0_05/bin/java 100 | |
update-alternatives --install /usr/bin/javac javac /opt/jdk/jdk1.8.0_05/bin/javac 100 | |
# Source: https://www.digitalocean.com/community/tutorials/how-to-manually-install-oracle-java-on-a-debian-or-ubuntu-vps |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment