I tried installing JRE on Ubuntu, but when I go online and check the site it still says that the latest JRE is not installed.

Is there shortest automatic way to install JRE in Ubuntu so that it works with Firefox?

The other thing is, which directory should I install it in?

link|improve this question

69% accept rate
feedback

migrated from serverfault.com Jan 12 '10 at 12:20

This question came from our site for system administrators and desktop support professionals.

2 Answers

up vote 1 down vote accepted

UbuntuGeek: How to Install Java Runtime Environment (JRE) in Ubuntu 9.04 (Jaunty)

link|improve this answer
I tried that but stll site says that JRE is not installed – Mirror51 Jan 12 '10 at 3:52
feedback

First of all, you shouldn't be worrying about to which directory JRE is going to be installed, this is something that a package manager tool (like apt-get) will take care of.

To install Java and verify results, follow these steps:

a) Open terminal

b) Use apt-get to install required packages by typing:

sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts

c) To verify that Java has really installed, try typing:

java -version

d) If this is OK, then try testing if the Firefox plugin is installed and running, by typing the following URL to the address bar:

about:plugins

You should find references to Java there.

When you've figure out which step did not work, it is much easier to troubleshoot!

link|improve this answer
feedback

protected by Diago Nov 23 '10 at 12:10

This question is protected to prevent "thanks!", "me too!", or spam answers by new users. To answer it, you must have earned at least 10 reputation on this site.

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