Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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, jrg, htorque, Takkat, Oli Jan 3 '12 at 9:55

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new 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

1 Answer 1

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.