Java 8 debian: различия между версиями
Материал из support.qbpro.ru
imported>Supportadmin Нет описания правки |
imported>Supportadmin Нет описания правки |
||
Строка 12: | Строка 12: | ||
</nowiki> | </nowiki> | ||
How to accept the Oracle JDK8 license automatically | '''How to accept the Oracle JDK8 license automatically''' | ||
<nowiki>echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | sudo /usr/bin/debconf-set-selections</nowiki> | <nowiki>echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | sudo /usr/bin/debconf-set-selections</nowiki> | ||
How to set the Java environment variables | '''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: | 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: |
Версия от 22:50, 8 июня 2015
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
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).