Created
April 21, 2015 16:54
-
-
Save pbalduino/47fc3c0354e841718905 to your computer and use it in GitHub Desktop.
install-java.sh
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
| #!/bin/sh | |
| cd /home/amanda/Downloads | |
| rm -rf /opt/jvm | |
| rm -rf jre1.8.0_45 | |
| mkdir /opt/jvm | |
| tar -zxf jre-8u45-linux-i586.tar.gz -C /opt/jdk | |
| update-alternatives --install /usr/bin/java java /opt/jdk/jre1.8.0_45/bin/java 100 | |
| update-alternatives --display java | |
| java -version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment