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

When I try to download the link directly using wget I get redirected to an error page. How can I download the official JDK from Oracle?

share|improve this question

closed as too localized by Bruno Pereira Feb 26 '13 at 20:28

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

A better solution is to install default java:

sudo apt-get install default-jdk

This will install all of the latest packages for the default jdk product.

share|improve this answer
Where is the jdk installed. I need to set JAVA_HOME for tomcat. – VaidAbhishek Oct 2 '13 at 7:41

Do you want Oracle Java or is OpenJDK fine?

For example, to install OpenJDK version 1.6 of just the jre you would type

sudo apt-get install openjdk-6-jre
share|improve this answer
There is also 7 no? (: – yinon Feb 26 '13 at 18:22

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