Java EE 7 updatetool installation fails

霸气de小男生 提交于 2020-01-05 08:03:16

问题


I have tried to install Java EE 7 with updatetool to be able to run Java EE Tutorial examples.

But the installation of updatetool fails. I have tried to start updatetool installation from the command line on my elementary os, then I saw the error when installing updatetool.

Here is an image: http://oi58.tinypic.com/x6iumx.jpg

Error text example 1:

Input/output error: Connection failed for URL http://pkg.oracle.com/javaeesdk/7/native/release/manifest/0/updatetool@2.3.5%2C0-56.2852%3A20111207T211721Z: 503: Service Temporarily Unavailable

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.

Error text example 2:

File 138/564 Input/output error: Connection failed for URL http: //pkg.oracle.com/javaeesdk/7/native/release/file/0/217e83782a91f09fa7f35122412cd155263b107f: 502: Proxy Error

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.

I don't use any proxy server. Help please!


回答1:


I had the same - it's because their site is so unbelievably slow.

The output you showed tells you what to do, increase the timeout.

But sometimes it just needs to be run again, which worked in my case.




回答2:


You can download the tutorial from Oracle Java EE 7 SDK download page.

Just download the latest Java EE 7 SDK, and unzip. The tutorial is inside the glassfish4/docs folder.




回答3:


I have managed to install updatetool finally, after 3 days.

My advice for everyone who has the same problem:

Try installation several times in the morning, afternoon, evening and at night. And maybe once you will have successful attempt :)

The problem was not on my side.



来源:https://stackoverflow.com/questions/22807055/java-ee-7-updatetool-installation-fails

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!