8

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?

0

2 Answers 2

4

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.

1
  • Where is the jdk installed. I need to set JAVA_HOME for tomcat. Oct 2, 2013 at 7:41
1

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
1
  • There is also 7 no? (:
    – yinon
    Feb 26, 2013 at 18:22

Not the answer you're looking for? Browse other questions tagged .