我尝试用updatetool安装Java 7,以便能够运行Java教程示例。
但是updatetool的安装失败了。我尝试从基本操作系统上的命令行启动updatetool安装,然后在安装updatetool时看到了错误。
下面是一张图片:http://oi58.tinypic.com/x6iumx.jpg
错误文本示例1:
输入/输出错误: URL http://pkg.oracle.com/javaeesdk/7/native/release/manifest/0/updatetool@2.3.5%2C0-56.2852%3A20111207T211721Z:503: Service临时不可用连接失败
Could not download application packages. This could be because:
- a proxy server is needed to access the internet. Please ensure that
the system proxy server settings are correct, or set the 'http_proxy'
environment variable to the full URL of the proxy server.
- the package server or network connection is slow.
If you are getting time out errors you can try setting the
PKG_CLIENT_CONNECT_TIMEOUT and PKG_CLIENT_READ_TIMEOUT
environment variables and try again. For example to increase
the timeouts to 300 seconds set them to 300
- the package server is down or otherwise inaccessible or it is
generating invalid data. Please contact the provider of the package
server.错误文本示例2:
文件138/564输入/输出错误: URL : //pkg.oracle.com/javaeesdk/7/native/release/file/0/217e83782a91f09fa7f35122412cd155263b107f: 502:代理错误连接失败
Could not download application packages. This could be because:
- a proxy server is needed to access the internet. Please ensure that
the system proxy server settings are correct, or set the 'http_proxy'
environment variable to the full URL of the proxy server.
- the package server or network connection is slow.
If you are getting time out errors you can try setting the
PKG_CLIENT_CONNECT_TIMEOUT and PKG_CLIENT_READ_TIMEOUT
environment variables and try again. For example to increase
the timeouts to 300 seconds set them to 300
- the package server is down or otherwise inaccessible or it is
generating invalid data. Please contact the provider of the package
server.我不使用代理服务器。救命啊!
发布于 2014-04-02 09:35:44
我也有过同样的经历--因为他们的网站太慢了。
您显示的输出告诉您要做什么,增加超时。
但有时它只需要再运行一次,这在我的情况下是有效的。
发布于 2016-05-06 17:14:26
您可以从OracleJavaEE7SDK 下载页面下载本教程。
只需下载最新的JavaEE7SDK并解压缩即可。本教程位于glassfish4 4/docs文件夹中。
发布于 2014-04-03 09:31:58
3天后,我终于安装了updatetool。
我对所有有同样问题的人的建议是:
在早上、下午、晚上和晚上尝试安装几次。也许一旦你有了成功的尝试:
问题不在我这一边。
https://stackoverflow.com/questions/22807055
复制相似问题