When I want to update the eclipse I get the following error:
Some sites could not be found. See the error log for more detail.
Unable to connect to repository
http://download.eclipse.org/eclipse/updates/3.7/content.xml Connection
timed out: connect Unable to connect to repository
http://download.eclipse.org/releases/indigo/content.xml Connection
timed out: connect
the available software sites are: http://download.eclipse.org/releases/indigo and
http://download.eclipse.org/eclipse/updates/3.7
The version of eclipse is 3.7.2
I have now set the proxy with
Window -> Preferences then General -> Network Connection
There I filled in my proxy and now I can update eclipse without any problems.
At work, I am behind a proxy, so on my MacBook Pro, I had to click on Eclipse->Preferences->General->Network Connections.
From there, choose Active Provider: Manual, and ensure the proxy entries below are all checked.
If there are no proxy entries, you will have to manually enter them.
Related
I have issue in connecting to eclipse market place from Eclipse Version: Oxygen.3a Release (4.7.3a)
I am getting below error when try to open eclipse market place.
"Cannot open Eclipse Marketplace
Cannot install remote marketplace locations: Connection failed
This is most often caused by a problem with your internet connection. Please check your internet connection and retry.
Cannot complete request to http://marketplace.eclipse.org/catalogs/api/p: Unable to connect to repository http://marketplace.eclipse.org/catalogs/api/p
Unable to connect to repository http://marketplace.eclipse.org/catalogs/api/p
Connection timed out: connect
Connection failed
This is most often caused by a problem with your internet connection. Please check your internet connection and retry.
Connection timed out: connect"
have tried changing window-->preferences-->General-->Network connections-->active provider to Direct/Manual, updating eclipse.ini with "-Djava.net.preferIPv4Stack=true"..
None of the things worked out for me..
Please suggest me on this.
Thanks
The point in the comment is well-taken. I find it hard to understand why so many people at my company are still trying to get Oxygen to work.
However, it is within the realm of possibilities that you can get the Marketplace connection working with this. I would assume that you are running behind a corporate firewall. There will be a particular proxy url you're supposed to use behind the firewall, which you have to configure in "Manual" mode in Network Connections. If you don't know what that proxy url is, you won't be able to get this to work.
Once you get the proxy working, you may get a different error, related to SSL and certificates. That would imply that your firewall requires a particular root certificate provided by your company. Assuming that's the case, that certificate needs to be installed in the Java distribution that is being used to run Eclipse. If you run into this, I would post a new question if you're unable to resolve this.
Eclipse is unable to connect to the internet when I am using a VPN.
The VPN I am using is: https://www.privateinternetaccess.com/
I have no issues when I try browsing the web using the VPN.
If I try to do something like access the Eclipse Marketplace I get an error saying connection fails and it suggests I should check my internet connection and retry.
I have tried restarting eclipse many times. I have tried changing my network connection preferences in eclipse (Direct, Manual, Native).
I don't really understand why connecting to a VPN should have any effect on eclipse.
Maybe, you have not set proxy (and login credentials) in the eclipse.
I have downloaded the latest eclipse version, eclipse kepler.
But when i try to access the Marketplace inside eclipse or try to install ADT plugin for Android, it gives me this creepy error which is driving me crazy:
Cannot open Eclipse Marketplace
Cannot install remote marketplace locations: Connection failed
This is most often caused by a problem with your internet connection. Please check your internet connection and retry.
Unable to read repository at http://marketplace.eclipse.org/catalogs/api/p.
Connection reset
Connection failed
This is most often caused by a problem with your internet connection. Please check your internet connection and retry.
Connection reset
please put below line to eclipse.ini in the last it worked for me
-Djava.net.preferIPv4Stack=true
I figured out finally that:
Avira Anti-Virus Software was blocking the network requests by eclipse.
After deactivating "enable web protection" in the Anti-Virus,
the stupid Eclipse was able to update itself.
If you are sitting behind a corporate network it could be filtering out requests coming from eclipse. Switching to 3G on my phone made it work for me.
This frustrated me for a while before I stumbled upon this link:
https://www.eclipse.org/forums/index.php/t/783720/
It says clear SOCKS entry in Network connections and be in manual Active Provider.
The SOCKS entry was already clear but after clicking on clear again, it just worked so worth a shot.
I tried to configure Network Connections but it did not work.
Eclipse's Internal Browser opens all update sites normally.
In IE and Firefox trere are no proxy configuration, but sometimes they request my windows username and password before browse a page. Perhaps there is a transparent proxy, I don't know.
The error:
Unable to connect to repository http://download.eclipse.org/releases/indigo/content.xml
Unable to connect to repository http://download.eclipse.org/releases/indigo/content.xml
Connection timed out: connect
Those links 404 meaning the other end is having problems
Edit - I was wrong, apparently this is an ongoing issue
One potential fix is to set
-vmargs -Djava.net.preferIPv4Stack=true
in your eclipse startup.
I am using Eclipse 3.6. I am trying to download a plug in from an update site, but it won't connect, it keeps saying "Pending" for quite some time.
Not alot of information there. It helps to let us know what you have tried...
I'll quote an answer I gave to a similar question, which contains the basic workarounds:
Can you connect to internet at all through Eclipse?
Open the internal webbrowser. In Eclipse: Window -> show view -> Other -> General: Internal web browser. Look up any normal adress, is it working?
Can you connect to another update site? Try for example Eclipse Emma: http://update.eclemma.org/ Do you see anything there?
What are your proxy preferences? Go to Window -> preferences -> General: Network connections.
The active provider:
Specifies the settings profile to be used when opening connections. Choosing the Direct provider causes all the connections to be opened without the use of a proxy server. Selecting Manual causes settings defined in Eclipse to be used. On some platforms there is also a Native provider available, selecting this one causes settings that were discovered in the OS to be used.
If internet is working fine outside of Eclipse, try changing to Native. After that, try Direct.
Here's one more option to try if none of the efforts above helped. You might be using Eclipse from a Shared Drive (for eg, H:). If so, move/copy it the entire Eclipse directory to C: and try again.
My Eclipse could not connect to internet, nor access Eclipse Marketplace, nor even open ports for Tomcat server. I am behind a corporate proxy and tried many options that I have found on Stack Overflow and other forums but to no avail. I've also tried different versions (Mars, Luna, Kepler and a corporate-provided Kepler).
These are the options I have tried:
Use Direct Connection
Go to Windows > Perferences > General > Network Connections.
Change Active Provider to Direct.
Restart Eclipse.
Set up Manual Proxy
Go to Windows > Perferences > General > Network Connections.
Change Active Provider to Manual.
Input proxy details, including username/password if required.
Clear SOCKS proxy.
Restart Eclipse.
Change Eclipse.ini
Go to Windows > Perferences > General > Network Connections.
Change Active Provider to Native.
Open Eclipse.ini.
Add the following under -vmargs, each on its own line.
-Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient4
-Dhttp.proxyPort=8080
-Dhttp.proxyHost=myproxy
-Dhttp.proxyUser=mydomain\myusername
-Dhttp.proxyPassword=mypassword
-Dhttp.nonProxyHosts=localhost|127.0.0.1
-Djava.net.preferIPv4Stack=true
Restart Eclipse
See:
Unable to connect to the Eclipse Luna Market
How do I configure the proxy settings so eclipse indigo can install new plugins
https://wiki.eclipse.org/Disabling_Apache_Httpclient
See answer by Ruhr Dev on Thu, 29 December 2011: https://www.eclipse.org/forums/index.php/t/270718/
Add Eclipse to Firewall
Go to Control Panel > Windows Firewall (or your own firewall)
Add Eclipse to whitelist (see https://stackoverflow.com/a/35508990 for Windows Firewall)
Delete Oomph-releated sub folders
Delete all Oomph-releated sub folders in ${user.home}/.eclipse/ folder
For Windows this may be in C:\Users\.eclipse
See answer by Stephan EberleFriend on Fri, 14 August 2015 18:54: https://www.eclipse.org/forums/index.php/t/270718/
See my other answer for Eclipse not able to open ports for Tomcat (https://stackoverflow.com/a/37246227/4212710).
If eclipse could not able to connect to internet, following may be one of the reason:
There is a service called "Network Access Protection Agent", which might be blocking eclipse from accessing the internet.
In this case, you can try the following (this worked for me-Windows 7 PC):
1. Click on Windows Start button and search for Administrative Tools and Open it
2. Then open Services
3. Look for "Network Access Protection Agent" service
4. Stop this service
5. Now eclipse should be able to connect to internet
Note: This happens when Windows are not up to date. So after stopping this service, update your Windows, then start this service.