How Do I Install Java 1 8 on Ubuntu?
Contents How Do I Make Java 8 Default on Ubuntu? to Set the Java Version Interactively: Log in as Root or Use Sudo. View the Java Alternatives. Sudo...
Contents
How do I make Java 8 default on Ubuntu?
To set the Java version interactively:
- Log in as root or use sudo .
- View the Java alternatives. sudo update-alternatives –config java. …
- Select a Java version, at the prompt, type a number. Press enter to keep the default[*], or type selection number: …
- Verify the switch, check the Java version. java -version.
Must Read
How do I install Java on Ubuntu?
Install OpenJDK
- Open the terminal (Ctrl+Alt+T) and update the package repository to ensure you download the latest software version: sudo apt update.
- Then, you can confidently install the latest Java Development Kit with the following command: sudo apt install default-jdk.
19 июн. 2019 г.