0

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?

muru
  • 197,895
  • 55
  • 485
  • 740
Krishna Chalise
  • 170
  • 2
  • 4
  • 17

1 Answers1

1

Run:

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.

QwertyChouskie
  • 2,344
  • 1
  • 16
  • 30
  • Some explanation of what your commands do might be helpful :). It may be obvious to you, but not to the OP or others who see this answer. – TheWanderer Feb 05 '16 at 00:36