java.lang.IllegalAccessError: class lombok.javac.apt.LombokProcessor cannot access class com.sun.tools.javac.processing.JavacProcessingEnvironment
The java.lang.IllegalAccessError with the message “class lombok.javac.apt.LombokProcessor cannot access class com.sun.tools.javac.processing.JavacProcessingEnvironment” occurs when the Lombok library cannot access the internal Java Compiler (javac) classes due to a change in the visibility of those classes in newer JDK versions. Starting from JDK 9, the Java Platform Module System (JPMS) was introduced, which enforces stronger encapsulation by … Read more