wood burning stoves 2.0*
The moose likes Ant, Maven and Other Build Tools and the fly likes Unable to get/download a jar/zip file using ant script Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Unable to get/download a jar/zip file using ant script" Watch "Unable to get/download a jar/zip file using ant script" New topic
Author

Unable to get/download a jar/zip file using ant script

Madhu Na
Greenhorn

Joined: Jun 03, 2011
Posts: 3
Hi,
I am trying to build a jar file using a ant script provided by a vendor and while running the script, I am getting the below connection time out error when it tries to download a jar file.



Can someone help me?

Thanks,
Madhu.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15950
    
  19

Welcome to the JavaRanch, Madhu!

I just did a quick check and that jar file should be downloadable, so you may have a local network problem.


Customer surveys are for companies who didn't pay proper attention to begin with.
Madhu Na
Greenhorn

Joined: Jun 03, 2011
Posts: 3
Hi Tim,
Thank you...

Yes, the Jar is downloadable manually, but not using the script. Also, the issue is only when I am connected to my Company network.

I am not sure, where I need to check the connectivity issue and update the script to work in the Company environment.

Can you please suggest?

Thanks,
Madhu.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9912
    
158

Are you behind a proxy? If yes, then take a look at the "Proxies" section in this document http://ant.apache.org/manual/Tasks/get.html


[My Blog] [JavaRanch Journal]
Madhu Na
Greenhorn

Joined: Jun 03, 2011
Posts: 3
Hi JaiKiran,
Yes, I think I am behind a proxy. I have gone through the link you have shared. But, I didn't see much information (Sorry, I am new to this stuff). Can you suggest the changes required?

Also, If I have to run a java program with the same type of changes, what needs to be done? When I run the program with in our Company network it is failing, but it is working outside of the network.

Thanks,
Madhu.
 
 
subject: Unable to get/download a jar/zip file using ant script
 
Similar Threads
Tomcat cant recognize "error-page" tag in web.xml
Occuring problem during interacting with the Tomcat server throught ant
maven unable to download artifacts
HttpURLConnection
how to read files from internet