This simple script will help you download and install Sun Java (JRE, JDK) 6 or 7 packages in Ubuntu 12.04 easily.
We’ve written many tutorials on this blog that show you how to install Sun Java (JRE, JDK) in Ubuntu, and this is another method to use to install these packages. I love this script better because it actually downloads and create a .dab package archive locally which allows you to install Java packages by using apt-get install commands. For more information about this script, click here.
Installation of Java on Ubuntu/Mint, Enter following commands in the Terminal:
To download Sun / Oracle Java 7 packages, run the commands below. It’s recommended in most cases to download Java 7 Packages.
After downloading either Java 6 packages, run the commands below to install Sun Java 6.
Or install Oracle Java 7 packages by running the commands below.
We’ve written many tutorials on this blog that show you how to install Sun Java (JRE, JDK) in Ubuntu, and this is another method to use to install these packages. I love this script better because it actually downloads and create a .dab package archive locally which allows you to install Java packages by using apt-get install commands. For more information about this script, click here.
Installation of Java on Ubuntu/Mint, Enter following commands in the Terminal:
wget https://github.com/flexiondotorg/oab-java6/raw/0.2.4/oab-java.sh -O oab-java.sh
chmod +x oab-java.sh
sudo ./oab-java.sh
To download Sun / Oracle Java 7 packages, run the commands below. It’s recommended in most cases to download Java 7 Packages.
sudo ./oab-java.sh -7
After downloading either Java 6 packages, run the commands below to install Sun Java 6.
sudo apt-get install sun-java-jre sun-java-jdk sun-java6-plugin sun-java6-fonts
Or install Oracle Java 7 packages by running the commands below.
sudo apt-get install oracle-java7-jre oracle-java7-jdk oracle-java7-plugin oracle-java7-fonts
Enjoy
Tried to install Java 6, yet the script stoped with:
ReplyDelete---
[x] Downloading jdk-6u39-linux-i586.bin : http://: Invalid host name.
19179's retcode: 1
failed
that's great and all but how do I invoke sun6 jre command line for old timey runescape clone JARs? the right click menu is populated with option for sun6 java but that's no joy
ReplyDeletejumping through all those verification hoops only to be queued in moderation? WTF?
ReplyDelete