java: JPS incremental annotation processing is disabled||java: java.lang.ExceptionInInitializer IDEA

java: JPS incremental annotation processing is disabled. Compilation results on partial recompilation may be inaccurate. Use build process "jps.track.ap.dependencies" VM flag to enable/disable incremental annotation processing environment.

idea 环境启动报错:

jdk16

原来是jdk1.8的项目,切换jdk后报错。idea无法启动。

解决方案:

pom 添加


        
            com.intellij
            annotations
            6.0.3
            provided
        

lombok 版本修改:

java: java.lang.ExceptionInInitializerError
Unable to make field private com.sun.tools.javac.processing.JavacProcessingEnvironment$DiscoveredProcessors com.sun.tools.javac.processing.JavacProcessingEnvironment.discoveredProcs accessible: module jdk.compiler does not "opens com.sun.tools.javac.processing" to unnamed module @7d5b5e1a
 

java: java.lang.ExceptionInInitializerError
Unable to make field private com.sun.tools.javac.processing.JavacProcessingEnvironment$DiscoveredProcessors com.sun.tools.javac.processing.JavacProcessingEnvironment.discoveredProcs accessible: module jdk.compiler does not "opens com.sun.tools.javac.processing" to unnamed module @7d5b5e1a

原来的
 

           
                org.projectlombok
                lombok
                1.16.16
            

修改为:

            
                org.projectlombok
                lombok
                1.18.20
            


 

你可能感兴趣的:(Java,java,intellij-idea,开发语言)