Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I configure the proxy settings so eclipse indigo can install new plugins

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.

like image 291
Victor Dolirio Avatar asked Nov 28 '11 16:11

Victor Dolirio


People also ask

How do I configure proxy settings for Java?

Configure Proxies through the Java Control PanelIn the Java Control Panel, under the General tab, click on Network Settings. Select the Use Browser Settings checkbox. Click OK to save your changes. Close all browser windows.


2 Answers

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
like image 199
Ayushman Avatar answered Oct 29 '22 10:10

Ayushman


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 help.

like image 44
asifaftab87 Avatar answered Oct 29 '22 10:10

asifaftab87