Error in JavaMail : PKIX path building failed unable to find valid certification path to requested target

前端 未结 6 1733
北荒
北荒 2020-12-14 07:27

I am trying to build an email client app in android and right now i want to configure the javaMail part.

i am trying to establish the connection with the imap server

6条回答
  •  自闭症患者
    2020-12-14 07:40

    easy way to solve this problem by getiing certificate file from Java 7

    copy the "cacerts" file from following java 7 directory

    C:\Program Files\Java\jdk1.7.0_79\jre\lib\security
    

    and paste it in java 6 directory

    C:\Program Files\Java\jdk1.6.0\jre\lib\security
    

提交回复
热议问题