Created
August 25, 2017 11:32
-
-
Save mansurali901/47611d3b0ada63d39ba89b1cc8275d12 to your computer and use it in GitHub Desktop.
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
################## Setting up JAVA ################## | |
##echo "Downloading JAVA JDK 1.8 from Local repository......" | |
wget https://www.dropbox.com/s/dwsqw6gofynaf5e/jdk1.8.0_91.tar?dl=0 | |
mv jdk1.8.0_91.tar?dl=0 jdk1.8.0_91.tar | |
##echo "Installing JAVA JDK 1.8" | |
mkdir -p /usr/java | |
mv jdk1.8.0_91.tar /usr/java/ | |
#cd /usr/java/ | |
tar xvf /usr/java/jdk1.8.0_91.tar -C /usr/java/ | |
ln -s /usr/java/jdk1.8.0_91 /usr/java/latest | |
##echo "Creating Links of binaries" | |
ln -s /usr/java/latest/bin/java /usr/bin/java | |
ln -s /usr/java/latest/bin/javac /usr/bin/javac | |
ln -s /usr/java/latest/bin/javah /usr/bin/javah | |
ln -s /usr/java/latest/bin/javap /usr/bin/javap | |
ln -s /usr/java/latest/bin/javadoc /usr/bin/javadoc | |
ln -s /usr/java/latest/bin/javaws /usr/bin/javaws | |
#echo "Checking JAVA Version" | |
java -version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment