How do I configure the proxy settings so eclipse i

2019-04-09 04:27发布

I've found this, but didn't work in my case.

I'm using eclipse indigo SR1 in a linux Fedora 32 bits. It's virtualized by VMWare Player. All applications in this linux is working when I configure the proxy settings but eclipse. I'm getting this errors that appears to be well known.

I have found This solution that I've tried in my enviroment, but didn't work. When I configure settings in eclipse.ini and launch eclipse, I get errors in the log like this:

!MESSAGE System property http.proxyHost has been set to 8080 by an external resource. This value will be overwritten using the values from preferences.

How can I force eclipse to prefer configurations in eclipse.ini instead of preferences panel?

Have somebody any insight?

Best regards.

3条回答
兄弟一词,经得起流年.
2楼-- · 2019-04-09 04:59

Ayushman's answer helped me but after that I am still unable to install software from eclipse market place. I got one link after that I can install software from eclipse marketplace. Click here

This works fine for unauthenticated HTTP proxy requests. However, if you have a proxy that requires authentication (typical for sites where Kerberos is installed and/or Active Directory, or where network security is paranoid) then this method doesn't work.

If you set the JVM's proxy to use the same settings as IE, the proxy request will automatically pass the security credentials, as long as you've browsed the web with IE first (and thus the security token has already been obtained).

Steps to set JVM proxy:

  1. Open Control Panel
  2. Programs
  3. Java
  4. General tab
  5. "Network Settings" button
  6. Select the radio button for "Use Proxy Server"
  7. Give your proxy address and port number (usually 8080)
  8. Click OK

Hope it will helps.

查看更多
仙女界的扛把子
3楼-- · 2019-04-09 05:04
You need to specify the following options below the -vmargs option in the .ini file, each on a separate line:
-Dhttp.proxyPort=8080
-Dhttp.proxyHost=myproxy
-Dhttp.proxyUser=mydomain\myusername
-Dhttp.proxyPassword=mypassword
-Dhttp.nonProxyHosts=localhost|127.0.0.1

Btw, are you behind an HTTP proxy or some other proxy? and why doesnt preferences menu work for you?

Try adding this line to .ini file if above arguments dont work:

-Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient
查看更多
爷、活的狠高调
4楼-- · 2019-04-09 05:06

I was facing the same problem, and I tried different solutions mentioned here and in several blogs without having one working to me.

However... one solution I found is that if you have an x32 Eclipse IDE, and an x64 OS, setting will not always save, and you may face these problems.

I had this problem with Juno x32 + Win7 x64, now it's solved using Juno x64, and Kepler x64

So, check your OS/IDE and make sure that you have the right versions.

查看更多
登录 后发表回答