Linda
Linda

Reputation: 1233

./jdk-6u34-linux-i586.bin: No such file or directory

I am trying to install jdk for 32-bit OS. Followed the below steps,

  1. wget http://download.oracle.com/otn-pub/java/jdk/6u34-b04/jdk-6u34-linux-i586.bin
  2. chmod u+x jdk-6u34-linux-i586.bin
  3. ./jdk-6u34-linux-i586.bin

But while trying to do step4 the below error happens,

./jdk-6u34-linux-i586.bin
./jdk-6u34-linux-i586.bin: No such file or directory

What may be the pblm.

Upvotes: 2

Views: 4225

Answers (2)

StackKrish
StackKrish

Reputation: 722

In order to download that file, you must have accepted the license in the previous page. So the wget command that you tried would only have downloaded the HTML page saying that complains that you have not accepted the license.

You can bypass this by adding adding the cookie to wget command that is used in that site.

Try the following wget command to download the file.

wget --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com" \
 -O jdk-6u34-linux-i586.bin \
 http://download.oracle.com/otn-pub/java/jdk/6u34-b04/jdk-6u34-linux-i586.bin

Upvotes: 6

Anders R. Bystrup
Anders R. Bystrup

Reputation: 16060

Try to look at the size of the file you've downloaded and then the contents. Good money is that you've got an HTML page asking you to accept the OTN license terms...

Anyways, installing JDK on a linux system is easily done with package managers such as Aptitude (Debian) or Yum (RPM based system).

Cheers,

Upvotes: 2

Related Questions