Yea, it's in the RPF Stretch repo as well.
HawaiianPi@CreeperPi:~ $ apt-cache policy oracle-java8-jdk
- Installed: (none)
Note that it is quite an old version. The current version from Oracle is 8u144
. If you want to update to the latest version you can install it manually, but an easier way is to use the webupd8team PPA, which will install and update Java like other packages. Also, if the above shows you have the old version installed, you'll want to remove it after we get you updated to the latest version (but don't try to remove it now).
Open a terminal and do the following:
Code: Select all
echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main" | tee /etc/apt/sources.list.d/webupd8team-java.list
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886
The current version of Stretch will generate an errort about no dirmngr when trying to get the key. To fix that just install it (apt-get install dirmngr) then repeat the key command and continue.
Code: Select all
apt-get install oracle-java8-installer
This will take a little while, and you'll have to agree to the Oracle terms, so pay attention.
When that is finished you'll want to remove the old Java version. If you had the default oracle-java8-jdk installed, remove it with apt-get remove oracle-java8-jdk, then you can exit the root terminal with exit[enter].
Enter java -version to check your installed version (it should be the latest).
HawaiianPi@CreeperPi:~ $ java -version
java version "1.8.0_144"
Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
Java HotSpot(TM) Client VM (build 25.144-b01, mixed mode)
Congrats, you now have the latest Java.