Posted By: Anonymous
What are the steps to install it on Ubuntu?
How to install
Open JDK (Java developement kit) in Ubuntu (Linux)?
Open Terminal from Application Dash or press Ctrl+Alt+T
sudo add-apt-repository ppa:openjdk-r/ppa # only Ubuntu 17.4 and earlier sudo apt update
Optional: To search available distributions of
openjdk, use the following command:
apt search openjdk
Install the appropriate version with the following command:
sudo apt install openjdk-8-jdk sudo apt install openjdk-8-source #this is optional, the jdk source code
JAVA_HOME(Environment Variable) type command as shown below, in “Terminal” using your installation path…
/usr/lib/jvm/java-8-openjdkis symbolically used here just for demostration. You should use your path as per your installation.)
PATH(Environment Variable) type command as shown below, in
To check your installation: