Java-Installation automatisch updaten

Aus Byte-Welt Wiki
Version vom 29. August 2015, 08:48 Uhr von L-ectron-X (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „# Install python-software-properties package sudo apt-get install python-software-properties # Add repository to the list of sources sudo add-apt-repositor…“)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Zur Navigation springenZur Suche springen
  1. Install python-software-properties package
sudo apt-get install python-software-properties

  1. Add repository to the list of sources
sudo add-apt-repository ppa:webupd8team/java

  1. Update local software list
sudo apt-get update

  1. Accept Oracle software license (only required once)
sudo echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | sudo /usr/bin/debconf-set-selections

  1. Install Oracle JDK8
sudo apt-get install oracle-java8-installer

  1. Check if Oracle Java 8 was installed properly
java -version

  1. The commend should return an output similar to this:
  2. java version "1.8.0_<version>"
  3. Java(TM) SE Runtime Environment (build 1.8.0_<version>)
  4. Java HotSpot(TM) 64-Bit Server VM (build <version>, mixed mode)
  5. If the output was sifnificantly different, please try the following command:
  6. sudo update-java-alternatives -s java-8-oracle