Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to install Java. Please help.

share|improve this question

closed as not a real question by fossfreedom Aug 21 '12 at 11:46

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

the easiest way is type the following command in terminal:

For installing jdk: sudo apt-get install openjdk-6-jdk
For installing jre: sudo apt-get install openjdk-6-jre
share|improve this answer

Try this

Java jre7 tar.gz file install?

and this

Oracle (Sun) Java JRE

The last link I think is that you looking for.

share|improve this answer

If you want java you should look in software center.

if you want to install a java file it depends what’s in it, sometimes you can untar it and give the system right to run the file and then click on it.

Can you be more specific by the archive?

share|improve this answer

You should write java on your terminal. This may give output something like this:

me@comp:~$ java
The program 'java' can be found in the following packages:
 * gcj-4.4-jre-headless
 * gcj-4.6-jre-headless
 * openjdk-6-jre-headless
 * gcj-4.5-jre-headless
 * openjdk-7-jre-headless
Try: sudo apt-get install <selected package>

Then you should type

sudo apt-get install openjdk-7-jre-headless

Press enter and it would install it.

share|improve this answer

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