SEARCH

The How-To Geek Forums Have Migrated to Discourse

How-To Geek Forums / Linux

(Solved) - Oracle Java 7 on ubuntu 12.04

(2 posts)
  • Started 2 years ago by theflash
  • Latest reply from theflash
  • Topic Viewed 10542 times

theflash
Posts: 38

Hi,
I've been trying to install Oracle's java 7 for a while instead of using the OpenJDK runtime. I followed this guide but it didn't work as java does absolutely nothing at all. I then tried removing it but I couldn't figure out how and so I then tried this guide but now I get this error:

installArchives() failed: Setting up oracle-java7-installer (7u3-0~eugenesan~precise4) ...
Downloading...
--2012-05-19 21:15:13-- http://download.oracle.com/otn.....x64.tar.gz
Resolving download.oracle.com (download.oracle.com)... 204.245.162.9, 204.245.162.34
Connecting to download.oracle.com (download.oracle.com)|204.245.162.9|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://edelivery.oracle.com/otn-pub/java/jdk/7u3-b04/jdk-7u3-linux-x64.tar.gz [following]
--2012-05-19 21:15:13-- https://edelivery.oracle.com/otn-pub/java/jdk/7u3-b04/jdk-7u3-linux-x64.tar.gz
Resolving edelivery.oracle.com (edelivery.oracle.com)... 23.1.46.174
Connecting to edelivery.oracle.com (edelivery.oracle.com)|23.1.46.174|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://download.oracle.com/err.....05220.html [following]
--2012-05-19 21:15:14-- http://download.oracle.com/err.....05220.html
Connecting to download.oracle.com (download.oracle.com)|204.245.162.9|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5307 (5.2K) [text/html]
Saving to: `./jdk-7u3-linux-x64.tar.gz'

0K ..... 100%% 1.63M=0.003s

2012-05-19 21:15:14 (1.63 MB/s) - `./jdk-7u3-linux-x64.tar.gz' saved [5307/5307]

Download done.
sha256sum mismatch jdk-7u3-linux-x64.tar.gz
Oracle JDK 7 is NOT installed.
dpkg: error processing oracle-java7-installer (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
oracle-java7-installer
Error in function:

I'm in a pickle :P Can anyone help me with this? I'm just trying to either get this to work or uninstall it. If you don't know a way to make it work, can you tell me how to remove it? I'm still new to ubuntu so don't expect much from me.

Thanks, in advance.

Edit: When I want to launch a .jar file with it nothing happens but it's supposed to run.

Posted 2 years ago
Top
 
theflash
Posts: 38

I can't edit my current post so I have to double post.

After a lot more googling and trying other guides I finally managed to make it work! I used this guide to fix the problem.

Accepted Answer · Posted 2 years ago
Top
 



Topic Closed

This topic has been closed to new replies.