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…“)
- Install python-software-properties package
sudo apt-get install python-software-properties
- Add repository to the list of sources
sudo add-apt-repository ppa:webupd8team/java
- Update local software list
sudo apt-get update
- 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
- Install Oracle JDK8
sudo apt-get install oracle-java8-installer
- Check if Oracle Java 8 was installed properly
java -version
- The commend should return an output similar to this:
- java version "1.8.0_<version>"
- Java(TM) SE Runtime Environment (build 1.8.0_<version>)
- Java HotSpot(TM) 64-Bit Server VM (build <version>, mixed mode)
- If the output was sifnificantly different, please try the following command:
- sudo update-java-alternatives -s java-8-oracle