Check your linux distribution and version:
cat /etc/lsb-releaseCheck if Java is installed:
java -versionOpenJDK version will be displayed if it is already installed. You no longer need to install OpenJDK
Install OpenJDK
sudo apt-get install default-jdkOpenJDK after installation:
You can now start developing java applications.



