无法打开Eclipse Marketplace |无法安装远程市场位置:连接失败

问题描述:

我在使用Eclipse Marketplace时遇到了一致性问题。我正在使用Eclipse Neon。我正在使用宽带互联网连接,并且我的Eclipse网络配置是本地的。无法打开Eclipse Marketplace |无法安装远程市场位置:连接失败

的错误是:

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 read repository at http://marketplace.eclipse.org/catalogs/api/p .
  Address family not supported by protocol family: connect
Connection failed

This is most often caused by a problem with your internet connection. Please check your internet connection and retry.
Address family not supported by protocol family: connect

错误的截图:

解决它。遵循以下步骤: -

  1. 打开命令提示符。
  2. 右键单击命令提示符的左上角,选择属性并启用快速编辑模式。
  3. 在cmd上键入以下行: - setx _JAVA_OPTIONS -Djava.net.preferIPv4Stack=true, 点击输入。
  4. cmd将提示: - 成功:保存指定的值。

重新启动日食。