my dog learned polymorphism*
The moose likes IDEs, Version Control and other tools and the fly likes Working with Internet URL from Eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Working with Internet URL from Eclipse" Watch "Working with Internet URL from Eclipse" New topic

Working with Internet URL from Eclipse

Thirugnanam Saravanan
Ranch Hand

Joined: Dec 13, 2007
Posts: 81
I am trying to execute a java Program which attempts to copy a file from internet URL to my local disk.

I am using the following code for getting connection to the URL.

My system is connected to internet through proxy server. In ECLIPSE I have entered the proxy host, proxy port, proxy authentication details in the Windows --> Preferences --> Internet --> Proxy Settings window.

But when I execute the above Code,it displays an exception

Any ideas on how to connect to Internet URL from a system which is behind the Proxy Server ?

SCJP 5.0(98%), SCWCD 5.0 (100%), OCA
Prashant Ladha

Joined: Feb 06, 2008
Posts: 8
I dont think configuring the proxy setting in the eclipse would work.
I think it needs to be done in your java code instead.
Jan Cumps

Joined: Dec 20, 2006
Posts: 2491


Look at URL.openConnection(Proxy proxy).

Your Eclipse proxy settings are not used in your java code.

Regards, Jan

OCUP UML fundamental and ITIL foundation
youtube channel
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Working with Internet URL from Eclipse
Similar Threads
Java Mail behind Proxy
Working with Internet URL through Proxy from Java Code Connection timed out: connect with Proxy
Weblogic Eclipse Proxy