Install Java 7 in Crunchbang 11 ‘Waldorf’

Hello Guys,

You Just installed Crunchbang and need to install some applications that require Java to operate. In this tutorial we will show you how to install Java 7. This tutorial also assumes you have no previous version of Java installed. We are going to install Java 7 by creating a local ‘apt’ repository for Oracle Java 7 packages.

Open Terminal,

Run the command below to download the script that will help us in this installation.

$ wget https://github.com/flexiondotorg/oab-java6/raw/0.3.0/oab-java.sh -O oab-java.sh

java1

After script has been downloaded, run the command below to make it executable:

$ chmod +x oab-java.sh

Now execute script:

$ sudo ./oab-java.sh -7

jdk1

Next run the command below to install oracle-java7-jre.

$ sudo apt-get install oracle-java7-jre

To install oracle-java7-jre, oracle-java7-jdk, oracle-java7-plugin and oracle-java7-fonts,

Run the command below:

$ sudo apt-get install oracle-java7-jre oracle-java7-jdk oracle-java7-plugin oracle-java7-fonts

If you are behind a proxy you may need to run using:

$ sudo -i ./oab-java.sh

If you want to see what this script is doing while it is running then execute the following from another shell:

$ tail -f ./oab-java.sh.log

jdk2

After Java have successfully been installed. Check from terminal

java_installed