-
-
Save MarceloCajueiro/8e26e1c4532489483a1d94ae3c2addde to your computer and use it in GitHub Desktop.
Install Oracle Java 6 on Ubuntu/Xubuntu
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
# Downloads and installs Oracle Java 6 from here: | |
# http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase6-419409.html#jdk-6u45-oth-JPR | |
wget \ | |
--no-cookies \ | |
--no-check-certificate \ | |
--header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" \ | |
http://download.oracle.com/otn-pub/java/jdk/6u45-b06/jdk-6u45-linux-x64.bin | |
chmod +x jdk-6u45-linux-x64.bin | |
./jdk-6u45-linux-x64.bin | |
sudo mv -T jdk1.6.0_45 /usr/lib/jvm/java-6-oracle-amd64 | |
sudo chown -R root: /usr/lib/jvm/java-6-oracle-amd64 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment