Java编译错误信息提示java.lang.ExceptionInInitializer如何解决
错误提示错误提示信息为:Error:java:java.lang.ExceptionInInitializerErrorcom.sun.tools.javac.code.TypeTags如果使用Maven错误信息是一样的。[INFO]------------------------------------------------------------------------[INFO]BUILDFAILURE[INFO]------------------------------------------
错误提示
错误提示信息为:
Error:java: java.lang.ExceptionInInitializerError com.sun.tools.javac.code.TypeTags

如果使用 Maven 错误信息是一样的。
[INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2.449 s [INFO] Finished at: 2020-02-26T08:34:45-05:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile) on project core-java-annotations: Fatal error compiling: java.lang.ExceptionInInitializerError: com.sun.tools.javac.code.TypeTags -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
请问这是什么原因呢?

这个可能原因是你编译器的环境使用过高。但是你的依赖
org.projectlombok lombok 1.6.12 provided
过低导致的。
可以解决的办法是将你的编译 JDK 降到 1.8。
或者将 org.projectlombok 升级到最新的版本。
例如我们在 IntelliJ 中,使用 1.8 编译代码,就没有错误。

Windows 10 是一款微软推出的经典操作系统,拥有硬件兼容性与多任务处理能力。它更偏向把系统状态查看和常用调节动作放在一起,适合需要持续观察和微调设备状态的场景。
极度公式是一款跨平台专业LaTeX公式识别编辑软件,支持OCR公式识别和多平台编辑。和使用说明,避免使用,享受完整功能与稳定支持。做扫描整理、文字提取和表格转换时,它能把识别后的处理步骤接得更顺,资料录入这类场景会省下不少时间。
















