Install Oracle JAVA 8 on Ubuntu 16.04/17.10/18.04
Install Oracle JAVA 8 on Ubuntu 16.04/17.10/18.04
Now we have started to installation oracle java 8 and oracle java jdk on Ubuntu machine.
Oracle JAVA JDK 9 was newly let out…nevertheless, still numberless tools and applications trust on Oracle JDK version 8 to work, if you’re applying tools like Eclipse and Net-beans to handle your JAVA eatable a projects,and you’re still working on JDK 8 install because JDK 9 fully do not support and How to Set Java Home Environment on your source?
If the requirement for JDK 8 installed on Ubuntu 16.04 / 17.10 / 18.04, the steps are given will help to begin
The present article shows bloom and fresh users how to get Oracle Java JDK 8 and JRE via PPA repository on Ubuntu server, local computers, etc.
Java JDK is an evolution in the circumstances for growing tools and applications Java based. Testing application can also use it as well Java language.
There’s also an other open source called as alternative version of JAVA JDK, although, various applications previously enlarge still plan on the Oracle version of the software…
Add a PPA repository to your UBUNTU server and local machine
The simple method to install Oracle Java JDK 8 on Ubuntu is via third party PPA… To add that PPA, run the following commands
[root@solutionclub ~]# add-apt-repository ppa:webupd8team/java
When you see prompt then you accept it.
Start installation JAVA 8 and JAVA 8 JDK on machine
Next you can check that PPA depository has added to machine,now you need to run a command to start download Oracle Java 8 and install the fresh java JDK 8 on Ubuntu machine.
[root@solutionclub ~]# apt update [root@solutionclub ~]# apt install oracle-java8-installer
When you execute this commands you’ll have the opportunity to approach for the license terms. You accept it and continue it.
This package help you to run an installer for The Oracle JDK 8. It is present stable free.If you need you can also substitute java8 with java7 or java9 in the package on different version. Java 9 no doubt it releases is not suggested for any of the development.
Now go ahead and begin to download and install JAVA on Ubuntu device.
when it finished you must check that java and its compiler are properly installed:
[root@solutionclub ~]# java -version [root@solutionclub ~]# javac -version
These commands give output as the following as a publisher
java version "1.8.0_131" Java(TM) SE Runtime Environment (build 1.8.0_131-b11) Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)
As PPA the single work as an installer so it do not updates JDK versions. You can delete it when you have done your order repositories organized:
[root@solutionclub ~]# add-apt-repository -r ppa:webupd8team/java
How to setting Home Environment Java on machine
Other various application that recommend JAVA_HOME also configuration and add code variable and these point the binary file of java , help to run them the java code.
To set environment variable on your system:
[root@solutionclub ~]# echo "JAVA_HOME=$(which java)" | sudo tee -a /etc/environment
Now you need to reload system’s then environment will variables reload:
[root@solutionclub ~]# source /etc/environment
justify the environment variable that set exactly:
[root@solutionclub ~]# echo $JAVA_HOME
It must return the path $JAVA_HOME.
Another way that you can also attempt that:
[root@solutionclub ~]# vim /etc/environment
After this you can load file or restart it
[root@solutionclub ~]# source /etc/environment
Great Job !!!!
Impotent link : WordPress Setup for Multisites