错误提示: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,如需转载请自行联系原作者

相关文章
|
4月前
|
安全 Java API
Eclipse 打开marketplace 报PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
网上有很多解决的帖子,我这里只是记录一下方便自己查阅 主要原因是java本身需要证书 1、按导入安全证书的方法解决
282 0
Eclipse 打开marketplace 报PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
|
Java
Appium问题解决方案(8)- selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Could not sign with default certificate.
Appium问题解决方案(8)- selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Could not sign with default certificate.
888 0
Appium问题解决方案(8)- selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Could not sign with default certificate.
|
6月前
|
Java Spring
【Java】Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean
【Java】Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean
86 0
|
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
757 0
Maven - Error:java: Annotation processing is not supported for module cycles. Please ensure that all
|
6月前
|
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的解决方案
52 0
|
7月前
|
安全 Java 应用服务中间件
分析解决 PKIX path building failed 的问题
分析解决 PKIX path building failed 的问题
158 0
|
8月前
|
Java Android开发
Failed to load JavaHL Library.These are the errors that were encountered:no msvcp100 in java.library
Failed to load JavaHL Library.These are the errors that were encountered:no msvcp100 in java.library
|
8月前
|
开发工具
WARNING: library configuration mismatch
WARNING: library configuration mismatch
165 0
|
10月前
|
缓存 Java Maven
Information:java: Errors occurred while compiling module ‘shirodemo‘
Information:java: Errors occurred while compiling module ‘shirodemo‘
109 0
|
数据安全/隐私保护
DES解密:java.security.InvalidKeyException: Parameters missing
DES解密:java.security.InvalidKeyException: Parameters missing
90 0