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.

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
add comment

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.

2 Answers

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
add comment

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
add comment

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