I am very new to JAVA. I just cloned a springboot microservice
.
I am trying to build it using ./gradlew clean build
Also I am using IntelliJ IDEA Ultimate.
I am getting the following error.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileJava'.
> java.lang.IllegalAccessError: class lombok.javac.apt.LombokProcessor (in unnamed module @0x68f76bb8) cannot access class com.sun.tools.javac.processing.JavacProcessingEnvironment (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.processing to unnamed module @0x68f76bb8
I am using openjdk17
if that matters. I also seem to have managed to install adoptopenjdk8
. How can i fix the above error?
Also since I am using gradle, how do I know which version of Java was used to write the service?