WebFaction
Community site: login faq
0
1

Hi guys,

I don't have a lot of experience in configuring a webfaction server. At the moment, I am trying to update my current Java version. If I type:

java -version
I get:
java version "1.6.0_30"
OpenJDK Runtime Environment (IcedTea6 1.13.3) (rhel-5.1.13.3.el6_5-x86_64)
OpenJDK 64-Bit Server VM (build 23.25-b01, mixed mode)

When looking for a tutorial, I found the following post: [https://community.webfaction.com/questions/11074/java-jre-7][1] . Here, they give the following instructions:

  • Grab the JRE7 tarball from Oracle
  • Upload it to your home directory on your WebFaction server
  • Unpack it
  • Run bin/java from within the extracted JRE directory.

When I try the following commands:

wget http://download.oracle.com/otn-pub/java/jdk/7u55-b13/jre-7u55-linux-x64.tar.gz
tar xf jre-7u55-linux-x64.tar.gz
I get the following error:
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now

What am I doing wrong?

asked 25 May '14, 13:25

KeesJansma
1114
accept rate: 0%


I was able to download the JDK and extract it via the following commands.

1) wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/7u55-b13/jdk-7u55-linux-x64.tar.gz

2) tar -xvf jdk-7u55-linux-x64.tar.gz

You may have gotten the error as Oracle has changed their cookie policy.

permanent link

answered 25 May '14, 13:46

aaront ♦♦
7664
accept rate: 27%

That did the trick, thanks!!

(25 May '14, 15:01) KeesJansma

Glad to hear that you were able to get it working!

(25 May '14, 15:04) aaront ♦♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×22
×3

question asked: 25 May '14, 13:25

question was seen: 2,383 times

last updated: 25 May '14, 15:04

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM