Hi, when I try to complie MinimumViableDataspace demo, this happened:
(base) PS D:\Study materials\dda\DDA4100\MinimumViableDataspace\MinimumViableDataspace> gradle build
Starting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could not be reused, use --status for details
> Task :extensions:catalog-node-resolver:compileJava FAILED
[Incubating] Problems report is available at: file:///D:/Study%20materials/dda/DDA4100/MinimumViableDataspace/MinimumViableDataspace/build/reports/problems/problems-report.html
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':extensions:catalog-node-resolver:compileJava'.
> Error while evaluating property 'javaCompiler' of task ':extensions:catalog-node-resolver:compileJava'.
> Failed to calculate the value of task ':extensions:catalog-node-resolver:compileJava' property 'javaCompiler'.
> Cannot find a Java installation on your machine matching this tasks requirements: {languageVersion=17, vendor=any vendor, implementation=vendor-specific} for WINDOWS on x86_64.
> No locally installed toolchains match and toolchain download repositories have not been configured.
* Try:
> Learn more about toolchain auto-detection at https://docs.gradle.org/8.12.1/userguide/toolchains.html#sec:auto_detection.
> Learn more about toolchain repositories at https://docs.gradle.org/8.12.1/userguide/toolchains.html#sub:download_repositories.
> 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.
> Get more help at https://help.gradle.org.
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/8.12.1/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
BUILD FAILED in 8s
13 actionable tasks: 13 executed
When I exectued gradle javaToolChains, the output is like this:
(base) PS D:\Study materials\dda\DDA4100\MinimumViableDataspace\MinimumViableDataspace> gradle -q javaToolChains
+ Options
| Auto-detection: Enabled
| Auto-download: Enabled
+ Oracle JDK 21.0.6+8-LTS-188
| Location: C:\Program Files\Java\jdk-21
| Language Version: 21
| Vendor: Oracle
| Architecture: amd64
| Is JDK: true
| Detected by: Current JVM
What can I do about it?
thank you.