Problem installing JDK on Linux...

NaturalChiller

Senior member
Jun 27, 2001
292
0
0
I can't seem to install the java 1.4 JDK .bin file. I've placed the .bin file in /usr/local/ and I have followed the instructions:
chmod +x j2sdk-...bin
./j2sdk...bin
but it won't execute the file. It gives me a bash: error executing binary file. I'm logged in as the root and everything. Any ideas on what to do? Any help would be appreciated. TIA

note: I'm running Red Hat 7.2 (which i just installed today)
 

Hector13

Golden Member
Apr 4, 2000
1,694
0
0
Our you sure you downloaded the correct bin file (ie, for linux)?

Try doing "more j2sdk-...bin "
The first few hundred lines should be plain text, make sure it starts with something like #! /bin/sh or something similar
 

manly

Lifer
Jan 25, 2000
13,589
4,239
136
Sounds like a bad download. Hector13 is correct on how to determine if it appears to be a good download.

Part of the problem is that Sun hides the SDK download behind a CGI script. So you're somewhat at your browser's mercy with respect to MIME types, or also FTP transfer mode.