aspose file tools*
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 Java 8 in Action this week in the Java 8 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: 15661
    
  15

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: 9343
    
111

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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Unable to get/download a jar/zip file using ant script
 
Similar Threads
maven unable to download artifacts
Occuring problem during interacting with the Tomcat server throught ant
HttpURLConnection
how to read files from internet
Tomcat cant recognize "error-page" tag in web.xml