-
-
Notifications
You must be signed in to change notification settings - Fork 7
ubuntu installjava sh
This litte script will help you to install Oracle Java 7 or 8 on your Ubuntu/Debian machine. It supports both, JDK and JRE.
After reinstalling my system I was really annoyed by the steps you have to do to install Oracle Java on your machine (most of the webbased tools require a "real" java not the IcedTea java). This script does it all for you. You just have to download the last recent version of Oracle Java and then use the script to install it. The script just needs one parameter, and that is the name (or better path) to the downloaded java tarball.
sh installjava.sh <java-tarball>
e.g (assuming script and tarball are in the same directory).:
sh installjava.sh jre-7u15-linux-x64.tar.gz
Sample with tarball in another directory:
sh installjava.sh /tmp/jre-7u15-linux-x64.tar.gz