Contents
How do I install Java on Ubuntu?
Java Runtime Environment
- Then you need to check if Java is already installed: java -version. …
- Run the following command to install OpenJDK: sudo apt install default-jre.
- Type y (yes) and press Enter to resume installation. …
- JRE is installed! …
- Type y (yes) and press Enter to resume installation. …
- JDK is installed!
How do I install Java on Linux?
Java for Linux Platforms
- Change to the directory in which you want to install. Type: cd directory_path_name. …
- Move the . tar. gz archive binary to the current directory.
- Unpack the tarball and install Java. tar zxvf jre-8u73-linux-i586.tar.gz. The Java files are installed in a directory called jre1. …
- Delete the . tar.