install oracle java 8

Upload: edison-silva-filho

Post on 03-Jun-2018

232 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/12/2019 Install Oracle Java 8

    1/3

    Install Oracle Java 8

    Oracle Java 8 was released yesterday and it can be installed in Debian by using the WebUpd8

    Java PPA repository.

    Usually, the packages available in Launchpad PPAs don't support Debian because they are built

    against specific Ubuntu libraries, but since the WebUpd8 Oracle ava PPA contains !ust an installer, it

    "orks on Debian too#

    Using this PPA repository, youll be able to install Oracle Java 8 !which includes both J"#8 and

    JD$8% in Debian &or both '(bit and )*bit as well as A"+$A%& v(v) *ard +loat A- . there's no

    D/ 8 A%& 0oft +loat A- archive available for do"nload on Oracle's "ebsite1#

    2he installer auto3atically do"nloads and installs Oracle D/8, but no actual ava files are available in

    our repository $that's not allo"ed by the Oracle ava license1#

    For Ubuntu / Linux Mint installation instructions, see: Install Oracle Java 8 In Ubuntu Via PPA

    Repositor !J"#8$

    -nstall Oracle ava 8 $both D/8 and %481 inDebian

    Tested on Debian Wheezy but it should work with any Debian

    version

    o add the WebUpd8 Oracle Java PPA repository and install Oracle Java 8 in Debian, use the

    &ollowing co--ands

    su -

    http://www.webupd8.org/2012/09/install-oracle-java-8-in-ubuntu-via-ppa.htmlhttp://www.webupd8.org/2012/09/install-oracle-java-8-in-ubuntu-via-ppa.htmlhttp://2.bp.blogspot.com/--b6fwMbiw1Y/UymNE8_12iI/AAAAAAAAR2U/oEaKqtIcVNw/s1600/java-jdk8-debian.pnghttp://www.webupd8.org/2012/09/install-oracle-java-8-in-ubuntu-via-ppa.htmlhttp://www.webupd8.org/2012/09/install-oracle-java-8-in-ubuntu-via-ppa.html
  • 8/12/2019 Install Oracle Java 8

    2/3

    echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" |

    tee /etc/apt/sources.list.d/webupd8team-java.list

    echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty

    main" | tee -a /etc/apt/sources.list.d/webupd8team-java.list

    apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA!88

    apt-#et update

    apt-#et install oracle-java8-installer

    e$it

    And that's it, Oracle ava 8 should no" be installed and you should get auto3atic updates for future

    Oracle ava 8 versions, under Debian#

    5ou can check out the ava version on your syste3 by using these co33ands6

    java -version

    2his should display so3ething like this6

    java version ".8.%"

    &ava'()* +E ,untime Environment 'build .8.%-b*

    &ava ot+pot'()* !-0it +erver 1) 'build 2.%-b3%4 mi$ed mode*

    Or6

    javac -version

    Which "ill display6

    javac .8.%

  • 8/12/2019 Install Oracle Java 8

    3/3

    +or ho" to install Oracle ava ) in Debian, see THISarticle#

    *o" to accept the Oracle D/8 licenseauto3atically

    2he Oracle ava 8 installer re7uires you to accept the Oracle license before the installation begins# -f for

    so3e reason you "ant to accept the license auto3atically, you can use the follo"ing co33and6

    echo oracle-java3-installer shared/accepted-oracle-license-v- select

    true | sudo /usr/bin/debcon5-set-selections

    *o" to set the ava environ3ent variables

    2here is a package in our repository that auto3atically sets the ava 8 environ3ent variables and sets

    D/8 as the default D/# 2o install it, use the follo"ing co33and6

    sudo apt-#et install oracle-java8-set-de5ault

    If you've already installed oracle-java6-set-default or oracle-java7-set-default, they will be automatically

    removed when installing oracle-java7-set-default (and the environment variables will be set for Oracle

    Java instead!"

    http://www.webupd8.org/2012/06/how-to-install-oracle-java-7-in-debian.htmlhttp://www.webupd8.org/2012/06/how-to-install-oracle-java-7-in-debian.html