解决IDE无法打开Marketplace异常

解决Eclipse Cannot open 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 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

解决1:
在eclipse安装目录,找到eclipse.ini文件,在文件末尾加入如下内容:
-Djava.net.preferIPv4Stack=true

解决2:
参考一下链接
https://blog.csdn.net/java_lais/article/details/78970838

你可能感兴趣的:(文件)