I recently changed network and removed all my HTTP proxy settings from the System Preferences / Networking panel on OSX (Leopard). However, now whenever I use Eclipse the Java HTTP proxy system properties seem to be 'automagically' set to use my now defunct HTTP proxy.
I can find no direct reference to this proxy anywhere on my system, have deleted and reinstalled Eclipse, have monitored the network traffic to rule out any proxy auto configuration, and yet this proxy configuration persists on the Mac OSX JVM.
This is what I see in the Eclipse configuration details:
http.proxyHost=zombie
http.proxyPort=8080
https.proxyHost=zombie
https.proxyPort=8080
I can work around this by manually configuring a proxy with no host name or port in the Eclipse preferences, but this doesn't seem to stick and the zombie system proxy eventually rises from the dead.
Personally I think that this is some kind of Apple JVM bug - but can anyone tell me how I can kill these zombie HTTP proxy settings for good without reinstalling my operating system?
Check the values in
/System/Library/Frameworks/JavaVM.framework/Home/lib/net.properties
There are comments in that file saying proxy settings (from net.properties) are used only if there are no proxy settings in System Preferences. I'm wondering if something updated your net.properties file, setting proxy info. Now that you have no proxy settings (in System Preferences), the values in net.properties are actually being used.
You reinstall eclipse, but did you:
- removed your old workspace ?
- have any environment variable like:
set JAVA_OPTS=%JAVA_OPTS% -Dhttp.proxyHost=host.example.com -Dhttp.proxyHost=7777
- observed the java process of your eclipse, to see if it was executed with options like:
java -classpath ./bin -Dhttp.proxyHost=webcache.mydomain.com -Dhttp.proxyPort=8080
-Dhttp.noProxyHosts=”localhost|host.mydomain.com”
I guess you guys are mission something. Check out the comment for that property
# MacOSX:
# On MacOSX, setting java.net.useSystemProxies to true or false is a no-op.
# Proxy settings from System Preferences are always used and they override any
# settings specified in this file. Values from this file are only used if there
# are no proxy settings in System Preferences.
# See Release Notes for more information.
java.net.useSystemProxies=false