. Advertisement .
..3..
. Advertisement .
..4..
The error “Error:java: java.lang.ExceptionInInitializerError com.sun.tools.javac.code.TypeTags” occurs when you try to run the compiler using the Java Runtime Environment. The error will cause you to get compilation errors. This blog will discuss how to fix it effectively.
How To Fix The Error “Error:java: java.lang.ExceptionInInitializerError com.sun.tools.javac.code.TypeTags”?
In Maven, you can get the error below:
Error:java: java.lang.ExceptionInInitializerError
com.sun.tools.javac.code.TypeTags
Error:java: java.lang.ExceptionInInitializerError
To fix “Error:java: java.lang.ExceptionInInitializerError com.sun.tools.javac.code.TypeTags”, you simply need to include the following dependency in the POM.xml file: org.projectlombok. Now, you have fixed your problem.
Our Approach: Include the following dependency
You simply need to include the following dependency in the POM.xml file:
<dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <version>1.18.2</version> <scope>provided</scope> </dependency>
Now, you have fixed your problem.
Conclusion
We hope our blog post on fixing the error “Error:java: java.lang.ExceptionInInitializerError com.sun.tools.javac.code.TypeTags” was useful. With this information, you should be able to handle this issue and a slew of other concerns when you design your application.
Please leave a comment if you want to learn more about the topic or if you have any questions or ideas to share. Thank you for taking the time to read this!
Leave a comment