How do I install Java 8 on Ubuntu?

How do I install Java 8 on Ubuntu?
Answer
Install Oracle Java 8 / 9 in Ubuntu 16.04, Linux Mint 18
  1. Add the PPA. Open terminal (Ctrl+Alt+T) and run the command:
  2. Update and install the installer script: Run commands to update system package index and install Java installer script:
  3. Check the Java version. To check the Java version after installing the package, run command:
  4. Set Java environment variables.
 

Tìm kiếm

Back
Top