Unbound classpath container in Eclipse

后端 未结 13 946
后悔当初
后悔当初 2020-11-29 19:49

I have checked out a project using Subversive for Eclipse and I am getting the following errors:

  • The project cannot be built until build path errors are resolv
13条回答
  •  失恋的感觉
    2020-11-29 20:49

    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.

提交回复
热议问题