JDK and JRE are the two standard types of install java 8 ubuntu. JDK stands for Java Development Kit and JRE stands for Java Runtime Environment. Creating the new java applications for the java developers required to install both Java development kit (JDK) and Java runtime environment (JRE) on their system.
For installing the java 8 on ubuntu you have to need to follow the following step.
install java 8 ubuntu
Run this command on your command line for installing the java 8 on ubuntu.
sudo apt update sudo apt install openjdk-8-jdk openjdk-8-jre
After running the above command you have successfully installed Java 8( install java 8 ubuntu)on your system. Now you want to verify the installation run the following command.
on your system. Now you want to verify the installation run the following command.
java -version openjdk version "1.8.0_222" OpenJDK Runtime Environment (build 1.8.0_222-8u222-b10-1ubuntu1~18.04.1-b10) OpenJDK 64-Bit Server VM (build 25.222-b10, mixed mode)
As you’ve got installed Java(install java 8 ubuntu) on your Linux system, you need to should set JAVA_HOME and JRE_HOME environment variables, which is employed by many of the Java applications to search out Java libraries during runtime. you’ll be able to set these variables in /etc/environment file using the subsequent command.
cat >> /etc/environment <<EOL JAVA_HOME= /usr/lib/jvm/java-8-openjdk-amd64 JRE_HOME=/usr/lib/jvm/java-8-openjdk-amd64/jre EOL
All is Done😍
Visit the official website of java for more guidance. Click
visit the java tutorial list. And make strong your java concept. Click here. wuschools.com is always written about the CSS concept for the java lover. And writes about how java makes your life easy if you are a web site developer. We help you to continue your learning.