Abnormal scene
When Java 8 switches to Java 11, there is an error and sun is not found security 。
Problem analysis
Jar package and source code are available. The probability is due to the security policy in the new JDK.
Solution:
In the compiler’s settings -> Build,Execution -> Compiler-> Disable in Java compiler:
Use ‘–release’ option for cross-compilation
Then rebuild
If there is no exception after build, check it again.
Read More:
- [Solved] IDEA Error(15, 16) java Program Pack sun.misc does not exsit or import sun.misc.BASE64Decoder Cannot find
- [Solved] Project Error: Could not found sun.misc.BASE64Encoder
- Idea create Maven project Error: [error] no longer supports source option 1.5. Please use version 1.6 or higher, and the idea reports an error: error: Java does not support the error of release version 5
- [Solved] Idea Build error. The symbol — Lombok cannot be found
- [How to Solve] Idea prompt does not support Lombok
- Java.lang.ClassNotFoundException: sun.jdbc.odbc.JdbcOdbcDriver [How to Solve]
- RSA Decryption Error: java.security.InvalidKeyException: IOException : algid parse error, not a sequence
- IDEA-Error java error release version 5 not supported (How To Fix)
- [Solved] IntelliJ idea error: error: Java does not support release 5
- IDEA Package Error: No valid Maven installation found.
- Idea Error 404: The project ssmbuild is unavailable/the target resource cannot be found
- [Solved] java.security.AccessControlException: Access Denied Error
- IDEA Error: lombok.extern.slf4j is not exist [How to Solve]
- IDEA Create Web Project with maven Error: The desired archetype does not exista…
- IDEA Maven Fail to Download Dependencies Error: ERROR – #org.jetbrains.idea.maven – Cannot reconnect.
- [Solved] Could not find resource COM / atguigu / Dao / studentdao.xm, the mapper file for storing SQL statements could not be found and an error occurred
- Spring Security Upgrade to Version 5.5.7, 5.6.4 or Above to Startup Error (Version incompatibility)
- Maven (http://repo1.maven.org/maven2/): Failed to transfer file and PKIX path building failed: sun.secu
- [Solved] IDEA2021.3 Error: Failed to write core dump. Minidumps are not enabled by default on client versions of
- How to Solve Mybatis error: invalid bound statement (not found)