One possibility would be that due to Proxy/firewall. To configured the proxy, one could have
%JDK_HOME%/jre/lib and placed the properties file called net.properties the following entries:
http.proxyHost=%proxy_address%
http.proxyPort=%proxy_port%
For more information have a look here
Thanks Macros.