Skip to content

Failed to run ./gradlew setupDecompWorkspace #316

Open

Description

@Huli-fox

I downloaded starter.zip and failed to run step 5 following the "Getting started" guide.

  1. Run ./gradlew setupDecompWorkspace
D:\Code\starter>gradlew.bat setupDecompWorkspace

Welcome to Gradle 9.3.1!

Here are the highlights of this release:

  - Test reporting improvements
  - Error and warning improvements
  - Build authoring improvements

For more details see https://docs.gradle.org/9.3.1/release-notes.html

Starting a Gradle Daemon (subsequent builds will be faster)

FAILURE: Build failed with an exception.

  - What went wrong: Unable to download toolchain matching the requirements
    ({languageVersion=25, vendor=any vendor, implementation=vendor-specific,
    nativeImageCapable=false}) from
    'https://api.foojay.io/disco/v3.0/ids/552c7bffe0370c66410a51c55985b511/redirect',
    due to: Toolchain provisioned from
    'https://api.foojay.io/disco/v3.0/ids/552c7bffe0370c66410a51c55985b511/redirect'
    doesn't satisfy the specification: {languageVersion=25, vendor=any vendor,
    implementation=vendor-specific, nativeImageCapable=false} and must have the
    executable 'javac', the executable 'javadoc', and the executable 'jar'.

  - Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output. Run with --scan to get full insights from a Build
Scan (powered by Develocity). Get more help at https://help.gradle.org.

Activity

  1. xiaohaiou233 commented on May 19, 2026

    @xiaohaiou233

    I have the same problem and I don't know how to fix either.
    QAQ

  2. konradmoesch commented on Jun 1, 2026

    @konradmoesch

    It seems the package provided in gradle/gradle-daemon-jvm.properties (https://api.foojay.io/disco/v3.0/ids/b41931cf1e70bc8e08d7dd19c343ef00/redirect) contains a java 21 jdk, which fails the toolchainVersion=25 requirement. Not sure how to fix (is there a newer toolchain on foojay?)

    My workaround was to change toolchainVersion to 26, since thats the java installation i have already installed.
    Installing openjdk25 globally might also work, not sure

  3. added a commit that references this issue on Jun 6, 2026
  4. added a commit that references this issue on Jun 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions