Coder Social home page Coder Social logo

Comments (5)

gundoghusse avatar gundoghusse commented on September 27, 2024 1

After more trial and horror, this seems to be related to "toolchain" issues (not finding the installed JDKs), but with really confusing error messages, I'm closing this issue

from buildship.

MarioKusek avatar MarioKusek commented on September 27, 2024

I don't know if this is relevant to this problem but I had similar one.

In Problems View I had error regarding some library that could not be found. Gradle refresh did not help. But when you go to Project -> Properties -> Gradle there are set some program arguments like in picture here:

Screenshot 2023-12-23 at 10 56 43

When I delete program arguments and refresh gradle project error disappears.

I hope this helps.

from buildship.

oleosterhagen avatar oleosterhagen commented on September 27, 2024

@gundoghusse I can reproduce your error when running Gradle 7.3 with Java 21. This is not supported, see Compatibility Matrix.

I think there are three possible solutions:

  1. Switch the project to Gradle 8.5, e.g. Project > Properties: Override workspace settings > Specific Gradle version
  2. Edit your eclipse.ini and start Eclipse with Java 17 (instead of Java 21)
  3. Add this property to the gradle.properties in your project root: org.gradle.java.home=<path to Java 17> (see Gradle Properties)

from buildship.

gundoghusse avatar gundoghusse commented on September 27, 2024

I don't know if this is relevant to this problem but I had similar one.

In Problems View I had error regarding some library that could not be found. Gradle refresh did not help. But when you go to Project -> Properties -> Gradle there are set some program arguments like in picture here:

When I delete program arguments and refresh gradle project error disappears.

I hope this helps.

Hi, unfortunately I didn't have any arguments so that did not help

from buildship.

gundoghusse avatar gundoghusse commented on September 27, 2024

@gundoghusse I can reproduce your error when running Gradle 7.3 with Java 21. This is not supported, see Compatibility Matrix.

I think there are three possible solutions:

  1. Switch the project to Gradle 8.5, e.g. Project > Properties: Override workspace settings > Specific Gradle version
  2. Edit your eclipse.ini and start Eclipse with Java 17 (instead of Java 21)
  3. Add this property to the gradle.properties in your project root: org.gradle.java.home=<path to Java 17> (see Gradle Properties)

Thanks for the reply, but I'm not sure that it helps.

Regarding step 1 above: We're unable to upgrade existing user/customer branches to gradle 8.5, and our developers need to be able to work on both the main branch (j21, gradle 8.5) and old branches (j21, gradle 7.3) in parallel . Does this mean that our users will have to have two separate eclipse installs as we are unable to upgrade the gradle version for old branches? We've never had to resort to that for any previous versions. Maybe I'm doing something wrong, but I run into a wall no matter what I do as soon as I want to build both branches with the same eclipse.

For step 2, I already have java 17 in eclipse.ini, which works for the j21-branches since they specify the JVM in the project settings.

For step 3, I suppose that's the same problem as for step 1, we cannot do a blanket upgrade of all branches.

from buildship.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.