Friday, May 27, 2016

Scala SBT error: sun.security.validator.ValidatorException: PKIX path building failed

Environment: 
Windows 7 in the company, no proxy
No installation on Scala SDK

When run "sbt" from command line, got the error:
sun.security.validator.ValidatorException: PKIX path building failed Error ...

The reason is that Java cannot access https website without trusted key store.
The below two articles explained very well and have the detailed solution, after put the key file to folder jre\lib\security, and rerun "sbt", the error is gone. (my concern, why "mvn" has no such error?)

http://www.mkyong.com/webservices/jax-ws/suncertpathbuilderexception-unable-to-find-valid-certification-path-to-requested-target/
https://github.com/escline/InstallCert

1 comment: