eclipse问题 Cannot open Eclipse Marketplace

最近为了给Mars.2 Release (4.5.2)安装spring tool suite插件,离线尝试了sts4.5.2版本,sts4.1.7版本,但都不能成功。想使用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. 
Unable to read repository at http://marketplace.eclipse.org/catalogs/api/p.
Connection reset 
Connection failed
This is most often caused by a problem with your internet connection.Please check your internet connection and retry. 
Connection reset


对于这个错误在网上查找了一下资料。

解决方法一:(这个方法进行了尝试,能够成功)

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


解决方法二:(这个方法也进行了尝试,问题没有解决。这个进行记录一下,给自己留点印象)

window->preferences->general->network connection,右边的active provider选择manual,

勾上HTTP、HTTPS、SOCKS,apply一下,重启eclipse




你可能感兴趣的:(其他)