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

Possible Duplicate:
How do I install Oracle Java JDK 7?

I have installed eclipse using Ubuntu software center,so I need to install JDK 7. I have visited Java download page but I was confused which package I should take also I don't know how to add this JDK to eclipse? thx advanced.

share|improve this question

marked as duplicate by Jorge Castro, James, htorque, Takkat, Oli Jan 3 '12 at 9:55

This question was marked as an exact duplicate of an existing question.

note I am using Ubuntu 11.10 64 bit – creative Nov 28 '11 at 12:25
Add that comment information to the question and delete the comment, you can do that by looking for the edit link under your message or by pressing this link. Another thing, OpenJDK7 is not good enough for what you are doing? Do you really need to install Oracle's JDK??? You should be able to develop programs with Java using the included OpenJDK included on your system. – Bruno Pereira Nov 28 '11 at 12:48

Unless you really need the Oracle version of JDK, the easieste option would be installing openjdk

sudo apt-get install openjdk-7-jdk

If you really need to use Oracle JDK, you can follow this howto @WebUpd8. Steps 3 and 4 can be replaced by this commands (and are only needed if you have more than one jdk version installed) in the case you dont want to use the ppa:

sudo update-java-alternatives -l
sudo update-java-alternatives -s <name of jdk>
share|improve this answer

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