Wednesday, June 22, 2016

Installing OpenJDK in Ubuntu using the Terminal

Check your linux distribution and version:

cat /etc/lsb-release

Check if Java is installed:

java -version
OpenJDK version will be displayed if it is already installed. You no longer need to install OpenJDK

Install OpenJDK

sudo apt-get install default-jdk

OpenJDK after installation:


You can now start developing java applications.