Link to home
Start Free TrialLog in
Avatar of Durga Ojha
Durga OjhaFlag for India

asked on

Getting error while installing Oracle JDK 7 on Ubuntu 14.4

302 Moved Temporarily
Location: http://download.oracle.com/otn-pub/java/jdk/7u80-b15/jdk-7u80-linux-x64.tar.gz?AuthParam=1499150225_7c8888245a3ac92875923c1caa8b317c [following]
--2017-07-04 12:05:05--  http://download.oracle.com/otn-pub/java/jdk/7u80-b15/jdk-7u80-linux-x64.tar.gz?AuthParam=1499150225_7c8888245a3ac92875923c1caa8b317c
Connecting to download.oracle.com (download.oracle.com)|49.200.255.202|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2017-07-04 12:05:06 ERROR 404: Not Found.

download failed
Oracle JDK 7 is NOT installed.
Avatar of Mauricio Aiello
Mauricio Aiello

You got 404 which means  that the desired resource was moved or removed from the repository.
In my opinion you should try install OpenJDK 7 from ubuntu packages. It's the same as Oracle's ones , there are some minor changes over the jdk policy files in $JAVA/jre/lib/security/, nothing more.

Try:
sudo apt-get install openjdk-7-jdk

I you still want the oracle version you should go to the web page: http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase7-521261.html. Be aware that you will need a Oracle User account created before download the jdk.

Mauricio
ASKER CERTIFIED SOLUTION
Avatar of Iswar Sahu
Iswar Sahu

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Durga Ojha

ASKER

Thanks anyway .. I was trying to install Oracle JDK 7 but it seems the repo has been removed ... so installed JDK8
Wired...
I'm using "sudo apt-get install openjdk-7-jdk" on my Ubuntu 14.04 and is working as expected... maybe you has something wrong with your Ubuntu packages management. Anyway great to hear that you were able to install java 7.
@Mauricio I was talking about Oracle JDK