I have checked out a project using Subversive for Eclipse and I am getting the following errors:
I had this problem in a Java 8 Gradle project after Eclipse updated itself to 2020 09. Worse: I could manually change the project JRE as much as I liked, Gradle would always revert it. It turned out that, by default, Gradle uses the JDK with which Eclipse was started (at least Java 11 from Eclipse 2020 09 onwards). I had to explicitly tell Gradle which JDK to use.
To make Gradle use a different JDK, you can set the property org.gradle.java.home
in your gradle.properties
. Note that the gradle.properties
in your project will usually be in version control, and it may not be desirable to have the setting there. In that case, you can use the user-local Gradle properties (usually ~/.gradle/gradle.properties
) instead.