如何在CentOS 6.5上安装Java

时间:2015-03-03 21:54:33

标签: java centos6.5

我正在尝试从CentOS6.5上的oracle下载并安装Java,但我收到错误。我正在使用的命令是:

wget --no-check-certificate --no-cookies --header" Cookie:gpw_e24 = http%3A%2F%2Fwww.oracle.com"" http://download.oracle.com/otn-pub/java/jdk/7u17-b02/jdk-7u17-linux-x64.rpm "

有人可以帮助我吗?

1 个答案:

答案 0 :(得分:0)

wget --no-check-certificate --no-cookies -header" Cookie:gpw_e24 = http%3A%2F%2Fwww.oracle.com" http://download.oracle.com/otn-pub/java/jdk/7u17-b02/jdk-7u17-linux-x64.rpm --2015-03-03 22:13:44-- http://%E2%80%93header/ 解决-header ...失败:名称或服务未知。 wget:无法解析主机地址“-header”