错误提示:sun.security.validator.ValidatorException: PKIX path building failed

简介:

内部系统上传文件需要调用Java,但是最近却提示无法运行,错误提示:sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

解决方法:

下载Portecle

http://portecle.sourceforge.net/

鼠标右键,run as administrator, 然后找到如下路径:C:\Program Files (x86)\Java\jre6\lib\security\cacerts

 

然后选择import,将证书导入进去,保存退出即可。如果不是管理员运行则会提示无法保存证书。

 






















本文转simmy51CTO博客,原文链接:http://blog.51cto.com/helpdesk/1046442,如需转载请自行联系原作者

相关文章
|
10月前
|
安全 Java API
Eclipse 打开marketplace 报PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
网上有很多解决的帖子,我这里只是记录一下方便自己查阅 主要原因是java本身需要证书 1、按导入安全证书的方法解决
1005 0
Eclipse 打开marketplace 报PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
shiro学习之错误 No realms have been configured! One or more realms must be present to execute an authori
shiro学习之错误 No realms have been configured! One or more realms must be present to execute an authori
|
Java Maven
Maven - Error:java: Annotation processing is not supported for module cycles. Please ensure that all
Maven - Error:java: Annotation processing is not supported for module cycles. Please ensure that all
1114 0
Maven - Error:java: Annotation processing is not supported for module cycles. Please ensure that all
|
6月前
|
SQL Java 数据库
flyway报错Caused by: org.flywaydb.core.api.FlywayException: Validate failed: Detected failed migration
flyway报错Caused by: org.flywaydb.core.api.FlywayException: Validate failed: Detected failed migration
86 1
|
7月前
|
Web App开发 Java 网络安全
PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
1540 0
|
9月前
|
数据采集 Java Linux
Java异常之【sun.security.validator.ValidatorException: PKIX path building failed: sun.security...】
Java异常之【sun.security.validator.ValidatorException: PKIX path building failed: sun.security...】
226 0
Java异常之【sun.security.validator.ValidatorException: PKIX path building failed: sun.security...】
|
Java Spring
【Java异常】Caused by: com.sun.mail.iap.BadCommandException: A3 BAD invalid command or parameters的解决方案
【Java异常】Caused by: com.sun.mail.iap.BadCommandException: A3 BAD invalid command or parameters的解决方案
230 0
|
安全 Java 应用服务中间件
分析解决 PKIX path building failed 的问题
分析解决 PKIX path building failed 的问题
760 0
|
开发工具
WARNING: library configuration mismatch
WARNING: library configuration mismatch
378 0
|
缓存 Java Maven
Information:java: Errors occurred while compiling module ‘shirodemo‘
Information:java: Errors occurred while compiling module ‘shirodemo‘
216 0