Я скачал версию JDK с сайта Oracle, файл называется jdk-6u37-linux-i586.bin
.
Чтобы установить его на Ubuntu, я сделал его исполняемым и запустил его:
$ chmod +x jdk-6u37-linux-i586.bin
$ ./jdk-6u37-linux-i586.bin
Я ожидал, что он установит JDK, но вот что я получаю:
./jdk-6u37-linux-i586.bin: line 1: html: No such file or directory
./jdk-6u37-linux-i586.bin: line 2: head: No such file or directory
./jdk-6u37-linux-i586.bin: line 3: title: No such file or directory
./jdk-6u37-linux-i586.bin: line 4: META: No such file or directory
./jdk-6u37-linux-i586.bin: line 5: link: No such file or directory
./jdk-6u37-linux-i586.bin: line 6: link: No such file or directory
./jdk-6u37-linux-i586.bin: line 7: $'\r': command not found
./jdk-6u37-linux-i586.bin: line 8: body: No such file or directory
./jdk-6u37-linux-i586.bin: line 9: div: No such file or directory
./jdk-6u37-linux-i586.bin: line 10: table: No such file or directory
./jdk-6u37-linux-i586.bin: line 11: tr: No such file or directory
./jdk-6u37-linux-i586.bin: line 12: syntax error near unexpected token `<'
./jdk-6u37-linux-i586.bin: line 12: ` <td rowspan="2" valign="middle" nowrap><a href="http://www.oracle.com"><img src="/errors/us/assets/oralogo-small.gif"'width="154" height="19" hspace="10" vspace="25" border="0" ></a></td>
с sudo это так:
./jdk-6u37-linux-i586.bin: 1: cannot open html: No such file
./jdk-6u37-linux-i586.bin: 2: cannot open head: No such file
./jdk-6u37-linux-i586.bin: 3: cannot open title: No such file
./jdk-6u37-linux-i586.bin: 3: Request: not found
./jdk-6u37-linux-i586.bin: 4: cannot open META: No such file
./jdk-6u37-linux-i586.bin: 5: cannot open link: No such file
./jdk-6u37-linux-i586.bin: 6: cannot open link: No such file
: not foundlinux-i586.bin: 7:
./jdk-6u37-linux-i586.bin: 8: cannot open body: No such file
./jdk-6u37-linux-i586.bin: 9: cannot open div: No such file
./jdk-6u37-linux-i586.bin: 10: cannot open table: No such file
./jdk-6u37-linux-i586.bin: 11: cannot open tr: No such file
./jdk-6u37-linux-i586.bin: 12: Syntax error: redirection unexpected