

By typing in java -versioninto the terminal, you can check if everything went right. Add the JAVA_HOME="/usr/lib/jvm/zulu-8"line to the file and save it. Again don’t forget to change the path, if you have installed the JDK into some other directory and same foes with the JAVA_HOMEvariable. Verify that the checksum of the downloaded file matches the value provided on the download page. Installing Open JDK 8 on Debian or Ubuntu Systems Configure your operating system to use the latest build of a Technology Compatibility Kit (TCK) Certified OpenJDK version 8, such as OpenJDK 8 ( minimum). Install Java 8 on Ubuntu 22.0420.0418.0416.04 You can install Java 8 on Ubuntu 22.04/20.04/18.04/16.04 from OpenJDK binaries available on the default upstream repositories. Download the appropriate DEB package for your OS from the Downloads page. Log in to your root account or use sudo to run the commands listed below.

To set it up, use the following commands, $ sudo nano /etc/environmentĪt the end of the PATH line add :/usr/lib/jvm/zulu-8/bin. Installing with a package manager requires root privileges. While JAVA_HOMEis used by tools installed on the system like IDE and all to find out the installed JAVA folder, PATHis used by the system to find the same. In this article, We have downloaded Oracle Java 8 from official site, installed using command line, configured JAVAHOME and JREHOME, verified installed version.

So to avoid that we need to setup couples of Environmental Variables like JAVA_HOMEand PATH. If you seeing output like above then we have successfully set up the Java 8 on Ubuntu. Though JAVA can be used by navigating to the installation folder, it’s not convenient any tools we will be installing, we will have to provide the path to the JSK folder manually. STEP 3 (Setting up Environment Variables):
