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?

4
  • Just run sudo apt-get install default-jre
    – Alex Lowe
    Feb 1, 2016 at 2:35
  • this didn't work Feb 1, 2016 at 2:49
  • Why do you think the JRE isn't installed?
    – muru
    Feb 1, 2016 at 3:02
  • bcause I didn't find jre location for android studio and sql workbench installation Feb 1, 2016 at 3:18

1 Answer 1

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.

1
  • 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. Feb 5, 2016 at 0:36

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .