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
# Get the latest Sun Java SDK from Oracle http://www.oracle.com/technetwork/java/javase/downloads/jdk-7u1-download-513651.html | |
wget http://download.oracle.com/otn-pub/java/jdk/7u21-b11/jdk-7u21-linux-x64.rpm?AuthParam=1366191299_077cdb0b196500e0d7250707139c1cf7 | |
# Rename the file downloaded, just to be nice | |
mv jdk-7u21-linux-x64.rpm\?AuthParam\=1366191299_077cdb0b196500e0d7250707139c1cf7 jdk-7u21-linux-x64.rpm | |
# Install Java | |
sudo rpm -i jdk-7u21-linux-x64.rpm | |
# Check if the default java version is set to sun jdk |