Archive for March, 2013

Installing Oracle Java 7 on Debian

March 13, 2013 Leave a comment

I’ll just get to the point. First you need to download it and transfer it to your Linux box.

Extract the package

tar -xzvf jdk-7u17-linux-i586.gz -C /usr/jvm

Now you can make the java and javac available like an alias by the following

update-alternatives --install /usr/bin/java java /usr/jvm/jdk1.7.0_17/bin/java 1065
update-alternatives --install /usr/bin/javac javac /usr/jvm/jdk1.7.0_17/bin/javac 1065

and you are done 🙂

You can check your installation by typing the following

java -version

Categories: OOP344