Cannot open Eclipse Marketplace Cannot install remote marketplace locations: Cannot resolve host
Asked Answered
M

18

26

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

Margherita answered 18/1, 2017 at 13:30 Comment(1)
I am also struggling after trying all the provided solutions without success.Shillyshally
G
34

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.

Genoa answered 3/2, 2018 at 4:10 Comment(0)
N
10

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
Nursling answered 17/5, 2018 at 11:41 Comment(2)
After trying all other options,this did the trick for me on Windows 10.Frictional
FYI, it must be added next to vmarg in eclipse.ini file.Denizen
M
9
  • Go to: Window->Preferences->General->Network Connections
  • Choose "Active Provider" To "Native"
  • Click 'apply' and then 'Ok'

NOTE: I gone through all possibilities - marketplace.eclipse.org/catalogs/api* (Not Working) - change 'Active Provider' to 'Manual'/'Direct'(Not Working) - Disable Proxies entries/Bypass(Not Working)

Mcgary answered 8/6, 2018 at 3:59 Comment(0)
V
6

Try to add the host like this: marketplace.eclipse.org/catalogs/api* in Proxy bypass.

enter image description here

Vast answered 7/7, 2017 at 14:45 Comment(1)
these should be checked, right? and for me its not working in any case. on CentOS 7Lisabethlisan
F
5
  1. Open command prompt (windows start button, type cmd in search)
  2. Click top left of command prompt, click properties, enable quick edit mode
  3. Copy: setx _JAVA_OPTIONS -Djava.net.preferIPv4Stack=true
  4. Right click on command prompt, should paste
  5. Hit enter. That easy!
Farceuse answered 14/1, 2018 at 5:11 Comment(0)
B
4

Eclipse Oxygen version: Window->Preferences->network connections->default apply will reset the settings. restart eclipse and it should work

Bellybutton answered 14/12, 2017 at 5:37 Comment(0)
P
3

I tried all the suggestions but no success for Eclipse Neon and Oxygen. At last it worked for Eclipse Neon when I added below line in Configuration Settings in eclipse folder.

-Djava.net.preferIPv4Stack=true

Edit Configuration Settings in eclipse folder and add the below line and save it. It will work.

Padget answered 11/7, 2018 at 13:42 Comment(1)
Adding this entry in eclipse.ini file worked for me. Thanks.Visionary
L
2

For me I solved the problem by those steps:

  1. Use the CNTLM proxy, which can be installed and run by following this GitHub readme file.

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

  3. Click on an empty line and add a host and the same port that youn configured in CNTLM

Eclipse CNTLM Proxy

Laomedon answered 27/9, 2018 at 9:14 Comment(0)
D
1

I got a similar issue and here is how I solved it.

I didn't find any other similar answers that work for me, so here it is:

Go to : Window > Preferences > General > Network Connections

Network Connections

  • Put the Active Provider to Manual.
  • Add the correct Host and Port for all Proxy entries.
  • Click on the line with SOCKS and click on Clear on the right.
  • Delete all lines in Proxy bypass and add a line with localhost.
Diver answered 11/1, 2022 at 15:5 Comment(0)
R
0

Are you running behind a NTLM proxy? If so you might find help at this Thread

A bit hacky workaround would be to download the plugins manually and than add it via 'Add local update site'.

Ragland answered 19/1, 2017 at 9:26 Comment(0)
C
0

I had same issue. I solved it with following steps:

  • Window -> Preferences -> Secure Storage
  • Tab - Contents
  • Delete [Default Secure Storage]
  • Restart Eclipse

Don't worry - Storage will be re-created automatically.

Collection answered 2/11, 2017 at 8:9 Comment(2)
Didnt understand why, but This worked for me! Thank youAttune
it didn't worked for me either. I tried Eclipse Mars / Oxygen / NeoNursling
H
0

I have tried all the possible suggestions given above but finally got answer for this : This may not be the right way to install the plugin but it worked for me and it served my purpose

Open the below URL : http://marketplace.eclipse.org/marketplace-client-intro?mpc_install=252148

Open eclipse and drag the plugin from the above url drop on eclipse [on top near header]

It will start downloading and eclipse will restart after successful installation.

Header answered 30/5, 2018 at 10:58 Comment(0)
S
0

I tried all the suggestion above with Eclipse Photon. None worked. Finally got the marketplace to open by installing Eclipse to a path with no white spaces.

Sissie answered 7/8, 2018 at 9:30 Comment(0)
A
0

when launching, java application defaults to listening to ipv6 exclusively. Modify .ini configuration settings file present in the folder by adding -Djava.net.preferIPv4Stack=true below the -vmargs. This sets the java to prefer IPV4 stack.

Alkoran answered 17/12, 2019 at 13:2 Comment(0)
P
0

This usually happens when you have any proxy connection set in your network settings. You can check that in your Proxy Settings in Windows.

Just copy the proxy host from there and add it in Proxy Bypass Host list inside

  • Window->Preferences->General->Network Connections
  • Then click on Apply & CLose.

It should work perfectly.

Parenthesis answered 7/5, 2020 at 7:36 Comment(0)
K
0

I encountered the same today morning on Ubuntu 20.04LTS with Eclipse Version: 2020-03 (4.15.0). This is what worked for me.

sudo vim /etc/resolve.conf

And add these 2 lines.

nameserver 8.8.8.8
nameserver 8.8.4.4

Save the file and restart the network. It worked like a charm.

Kenlee answered 18/7, 2020 at 6:12 Comment(0)
D
0

Had the same issue when I was connected to VPN. But It worked after I disconnected my VPN.

Dendroid answered 26/9, 2023 at 0:44 Comment(0)
A
0

If you are behind corporate firewall, You could try adding these two lines at the end of your eclipse.ini:

-Djavax.net.ssl.trustStoreType=Windows-ROOT -Djavax.net.ssl.trustStore=NONE

https://www.eclipse.org/forums/index.php?t=msg&th=1113326&goto=1860034&#msg_1860034

Aforethought answered 13/2 at 20:32 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.