Best Answer: How Do I Install the Latest Version of Java on Ubuntu?
Contents How Do I Update My Java Version on Ubuntu? If You Want a Newer One Your Best Options Will Be to: Wait for an Update from Ubuntu, Or. Install the...
Contents
How do I update my Java version on Ubuntu?
If you want a newer one your best options will be to:
- wait for an update from Ubuntu, OR.
- install the Oracle distribution of Java which currently is at 7u65: sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java7-installer.
How do I install Java on Ubuntu?
Installing the Default OpenJDK (Java 11)
- First, update the apt package index with: sudo apt update.
- Once the package index is updated install the default Java OpenJDK package with: sudo apt install default-jdk.
- Verify the installation, by running the following command which will print the Java version: java -version.