Eclipse 打开marketplace 报PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

简介: 网上有很多解决的帖子,我这里只是记录一下方便自己查阅主要原因是java本身需要证书1、按导入安全证书的方法解决

问题:报错

Cannot open Eclipse Marketplace
Cannot install remote marketplace locations: Cannot complete request to http://marketplace.eclipse.org/catalogs/api/p: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Cannot complete request to http://marketplace.eclipse.org/catalogs/api/p: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
PKIX path building failed:

1、下载证书
打开网站https://marketplace.eclipse.org/
image.png
image.png
image.png
2、导入证书
注意:这里一定在eclpise使用的jdk导入,要不然不起作用
进入jdk的目录:
D:\study\ProgramFile\Java\jdk1.8.0_281\jre\lib\security
在命令界面输入下面:
timld998in
123456
密码默认为:changeit
keytool -import -alias marketplace -keystore cacerts -file D:/study/ProgramFile/Java/sslFile/eclipse.org.crt -validity 3600
image.png
重启eclipse就可以成功打开了。
下面给出一些验证:
1、查看eclipse使用的jdk
查看eclipse.ini
image.png
2、查看文件是否导入成功
查看对应的文件修改日期
image.png
当然直接查密码库
keytool -list -v -keystore cacerts -storepass
keytool -list -keystore cacerts -alias marketplace

删除:keytool -delete -alias marketplace -keystore cacerts

相关文章
|
5月前
|
XML 应用服务中间件 Android开发
【已解决】eclipse导入项目出错 Server Tomcat v7.0 Server at localhost failed to start
【已解决】eclipse导入项目出错 Server Tomcat v7.0 Server at localhost failed to start
48 0
|
开发工具 Android开发 git
|
应用服务中间件 Android开发
eclipse deploy path 修改
eclipse deploy path 修改
eclipse deploy path 修改
|
XML 应用服务中间件 Android开发
Eclipse出现Tomcat无法启动:Server Tomcat v8.5 Server at localhost failed to start问题
Eclipse出现Tomcat无法启动:Server Tomcat v8.5 Server at localhost failed to start问题
432 0
Eclipse出现Tomcat无法启动:Server Tomcat v8.5 Server at localhost failed to start问题
|
关系型数据库 MySQL Java
Eclipse出现:Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.2:generate
Eclipse出现:Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.2:generate
126 0
|
Java Android开发
Eclipse中项目报Target runtime com.genuitec.runtime.generic.jee60 is not defined异常的解决方法
Eclipse中项目报Target runtime com.genuitec.runtime.generic.jee60 is not defined异常的解决
549 0
Eclipse中项目报Target runtime com.genuitec.runtime.generic.jee60 is not defined异常的解决方法
|
Android开发
lombok eclipse 提示 generating getters and setters failed 错误解决方案
【转载请注明出处http://blog.csdn.net/w605283073/article/details/50949104】 by 明明如月 前一段时间 需要用lombok 找到一个安装方式
228 0
lombok eclipse 提示 generating getters and setters failed 错误解决方案