Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot open Eclipse Marketplace Cannot install remote marketplace locations: Cannot resolve host

Tags:

I am using eclipse Kepler version and trying to install Sonar plugin from Eclipse marketplace. But I am getting below error

Cannot open Eclipse Marketplace Cannot install remote marketplace locations: Cannot resolve host

This is most often caused by a problem with your internet connection. Please check your internet connection and retry. Unknown Host: http://marketplace.eclipse.org/catalogs/api/p marketplace.eclipse.org Cannot resolve host

This is most often caused by a problem with your internet connection. Please check your internet connection and retry. marketplace.eclipse.org

I tried below things as per solution suggested by some people.

  1. Go to Window-> Preferences -> General -> Network Connection. And change below settings Active Provider-> Manual-> and check---> HTTP, HTTPS and SOCS. After restarting eclipse still the problem persisted.
  2. I tried connecting to google.com from Eclipse Internet Explorer and able to see google homepage
  3. Added line in eclipse.ini file -vmargs -Djava.net.preferIPv4Stack=true But still same issue

I am really frustated by this issue and couldn't find any help anywhere. If anyone has faced this issue and has an effective resolution, please assist.

Below is the snap of Proxy details enter image description here

like image 324
Vishal Avatar asked Jan 18 '17 13:01

Vishal


People also ask

Why my Eclipse Marketplace is not opening?

In recent versions of MyEclipse, the Eclipse Marketplace may not be accessible. Once done, restart the IDE to apply the changes. You should now see the Eclipse Marketplace entry in the Help > Install from Catalog dialog. This is caused due to the fact that the Eclipse Marketplace API now requires HTTPS.

How do I enable marketplace in Eclipse?

To access the Eclipse Marketplace Client from the Eclipse IDE: Click Cltr + 3 (Windows) or Command + 3 (Mac) - this will launch the Quick Access search bar. Start typing “Eclipse Marketplace”; it will auto-complete before you finish typing. Click Enter.

How do I update my marketplace in Eclipse?

Open the Available Software Sites preference page. Enable the Latest Eclipse release https://download.eclipse.org/releases/latest repository by ticking the checkbox. Apply and Close. Check for updates.


2 Answers

The solution is:

  1. Go to-Window->Preferences->General->Network Connections

  2. Choose "Active Provider" To "Direct"

  3. then click "apply" and then "ok".

It will Start Opening.

like image 89
Harshit Saxena Avatar answered Sep 18 '22 08:09

Harshit Saxena


I tried all the suggestions but no success for Eclipse Mars, Neo and Oxygen At last it worked for Eclipse Oxygen when I added following line to eclipse.ini file

-Djava.net.preferIPv4Stack=true 
like image 20
Amol Dixit Avatar answered Sep 21 '22 08:09

Amol Dixit