Home > OOP344 > Installing Oracle Java 7 on Debian

Installing Oracle Java 7 on Debian

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
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: