Java – Eclipse not connecting to internet via proxy

eclipsejavaPROXY

My eclipse(juno 4.2, centos 5.6) doesn't connect to internet. At all. I have a proxy server setup.

I had a look at Eclipse can not connect to internet
and at various other questions. So, at the moment, my eclipse.ini file looks like this:

-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
-Dhttp.proxyHost=192.168.1.21
-Dhttp.proxyPort=3128
-Dhttp.nonProxyHosts=localhost|127.0.0.1
-Djava.net.preferIPv4Stack=true
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20120522-1813
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Xms40m
-Xmx512m

I also tried setting proxy server values in the preferences(preferences/Network Connections) – set the HTTP, HTTPS, SOCKS host, port & credentials. But none of the Active Provider settings(Manual, Native, Direct) work for me.

I've spent enough time on this to know that I need help. Badly. 😛

So, here I am…help!!

Best Answer

I was able to do this through the preferences UI, under the 'Network Connection' section. I had to set 'Active Provider' to 'Manual' & then provide proxy server details below that.

Related Topic