Contents
How do I install Java 8 on Linux?
Installing Open JDK 8 on Debian or Ubuntu Systems
- Check which version of the JDK your system is using: java -version. …
- Update the repositories: sudo apt-get update.
- Install OpenJDK: sudo apt-get install openjdk-8-jdk. …
- Verify the version of the JDK: …
- If the correct version of Java is not being used, use the alternatives command to switch it: …
- Verify the version of the JDK:
How do I install Java on Linux Mint?
How to install Oracle JDK on Linux Mint
- Open up the Terminal (Alt + F2 > Terminal).
- Remove OpenJDK installation. …
- Download Oracle JDK from here. …
- Change directory into one with downloaded tarball. …
- Extract tarball. …
- As a root create a folder in /opt where jdk will be stored. …
- Move extracted folder to /opt/java.