I have Java version 1.7.0_91 installed in my Ubuntu PC. I installed it using the command
sudo apt-get install default-jdk
so, I think only JDK is installed but not the JRE. So what can I do to install JRE?
sudo apt-add-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java8-installer oracle-java8-set-default
This will install Oracle JRE 8 and set it as default.