[Solved] IDEA error: sun.security.pkcs not found

Problem – (sun.security.pkcs) Sun Security not found

The error is coming due to java 8 being switched to java 11 and sun is not found security

Reason of Problem

Some changes were done in JDK security policy that’s the problem is occurring. For this problem, we have jar package and source code.

How to Solve intellij error : sun.security.pkcs not found

Step 1 : In the compiler’s settings -> Build ->Execution -> Compiler-> Disable in Java compiler:

Step 2 : Use ‘–release’ option for cross-compilation

Step 3 : Then rebuild

Step 4 : after this apply it

Check it again if no exception comes after build.

Ranjeet Singh Rawat
Ranjeet Singh Rawat

Leave a Reply

Your email address will not be published. Required fields are marked *