Created
October 27, 2014 20:29
-
-
Save avenda/d234519cccac30a6ad12 to your computer and use it in GitHub Desktop.
install java6 update 45 on ubuntu 14.14 lts
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
#!/bin/sh | |
#install script for ubuntu | |
echo "Downloading JDK" | |
wget http://ghaffarian.net/downloads/Java/JDK/jdk-6u45-linux-x64.bin | |
echo "Change permissions" | |
chmod +x jdk-6u45-linux-x64.bin | |
./jdk-6u45-linux-x64.bin | |
mv jdk1.6.0_45/ java-6-oracle/ | |
sudo mkdir /usr/lib/jvm/ | |
sudo mv java-6-oracle/ /usr/lib/jvm/ | |
echo "Create the appropriate symbolic links for Java." | |
sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/java-6-oracle/bin/java" 1 | |
sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/java-6-oracle/bin/javac" 1 | |
sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/lib/jvm/java-6-oracle/bin/javaws" 1 | |
sudo update-alternatives --config java | |
sudo update-alternatives --config javac | |
sudo update-alternatives --config javaws |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment