-1

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.

1 Answers1

0

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>
Salem
  • 19,864
  • 6
  • 65
  • 90