Samuel M.H. 's technological blog

Sunday, June 22, 2014

Oracle Java on Debian

Sometimes it is needed to have installed the Oracle Java version, also with browser integration (firefox, chrome, etc). For example when dealing with Hacienda (the spanish taxes office).

This is the way I use to install it on a Debian Linux. It should work also with Ubuntu and Debian based systems with APT.

All the steps should be executed as superuser or though the command 'sudo'.

 Add the repositories and update:

echo "deb precise main" | tee -a /etc/apt/sources.list 

echo "deb-src precise main" | tee -a /etc/apt/sources.list 

apt-key adv --keyserver --recv-keys EEA14886 

apt-get update

Then select the Java version you want to install:
  •  Java 6
    apt-get install oracle-java6-installer 
  •  Java 7
    apt-get install oracle-java7-installer
  •  Java8
    apt-get install oracle-java8-installer  

And that's all.

No comments:

Post a Comment

Copyright © Samuel M.H. All rights reserved. Powered by Blogger.