2017-05-08 504 views
1

我在使用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

解決它。遵循以下步驟: -

  1. 打開命令提示符。
  2. 右鍵單擊命令提示符的左上角,選擇屬性並啓用快速編輯模式。
  3. 在cmd上鍵入以下行: - setx _JAVA_OPTIONS -Djava.net.preferIPv4Stack=true, 點擊輸入。
  4. cmd將提示: - 成功:保存指定的值。

重新啓動日食。