Java 8 debian: различия между версиями
imported>Supportadmin Нет описания правки |
imported>Vix Нет описания правки |
||
Строка 1: | Строка 1: | ||
== Через репозитарий Ubuntu\Debian== | |||
http://www.webupd8.org/2014/03/how-to-install-oracle-java-8-in-debian.html | http://www.webupd8.org/2014/03/how-to-install-oracle-java-8-in-debian.html | ||
<nowiki>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 | 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-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886 | ||
apt-get update | apt-get update | ||
apt-get install oracle-java8-installer | apt-get install oracle-java8-installer | ||
</nowiki> | </nowiki> | ||
* 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''' | '''How to accept the Oracle JDK8 license automatically''' |
Версия от 12:20, 18 декабря 2016
Через репозитарий Ubuntu\Debian
http://www.webupd8.org/2014/03/how-to-install-oracle-java-8-in-debian.html
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).