First check if java is available , java –version will show
the java version if it is available in system. In my case java is not
available.
Please follow the below steps to install oracle jdk in Ubuntu
sudo add-apt-repository ppa:webupd8team/java
sudo apt update
sudo apt install oracle-java8-installer
Your system will download the JDK from Oracle and ask you to
accept the license agreement. Accept the agreement and the JDK will install.
Please verify java and javac commands are working or not .
It should work properly.
No comments:
Post a Comment