Java 8 debian: различия между версиями

Материал из support.qbpro.ru
imported>Vix
imported>Vix
Нет описания правки
Строка 1: Строка 1:
== Через репозитарий Ubuntu\Debian==
== JRE установка через репозитарий Ubuntu \ Debian ==


* [http://www.webupd8.org/2014/03/how-to-install-oracle-java-8-in-debian.html faq]
* [http://www.webupd8.org/2014/03/how-to-install-oracle-java-8-in-debian.html faq]

Версия от 12:23, 18 декабря 2016

JRE установка через репозитарий Ubuntu \ Debian

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 hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886
apt-get update
apt-get install oracle-java8-installer


  • sources list
deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main
deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main

How to accept the Oracle JDK8 license automatically

echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | sudo /usr/bin/debconf-set-selections

How to set the Java environment variables

There is a package in our repository that automatically sets the Java 8 environment variables and sets JDK8 as the default JDK. To install it, use the following command:

apt-get install oracle-java8-set-default

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 8 instead).