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?

  • Just run sudo apt-get install default-jre – Alex Lowe Feb 1 '16 at 2:35
  • this didn't work – Krishna Chalise Feb 1 '16 at 2:49
  • Why do you think the JRE isn't installed? – muru Feb 1 '16 at 3:02
  • bcause I didn't find jre location for android studio and sql workbench installation – Krishna Chalise Feb 1 '16 at 3:18
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.

  • 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 5 '16 at 0:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.