Install Java JDK

wget http://installit.googlecode.com/hg/install.java-jdk.sh -O - | bash -

#!/bin/bash

# install debconf
sudo apt-get install debconf-utils

# create answer file
sudo debconf-set-selections <<\EOF
sun-java6-bin shared/accepted-sun-dlj-v1-1 boolean true
EOF

# add repository
sudo add-apt-repository -y ppa:flexiondotorg/java

# update repository
sudo apt-get update -qq

# install
sudo apt-get install -y --force-yes sun-java6-jdk

# OPTIONAL: PPA repository
sudo add-apt-repository ppa:sun-java-community-team/sun-java6
sudo apt-get update
sudo apt-get install sun-java6

sudo update-alternatives --config java

Do you like this page? Then support it. Please click the AD below and visit the sponsor. Thank you!