我在MCreator2025.2构建1.20.1 forge 工作区的时候提示我工作区构建失败 大概就是因为MCreator下载后软件本身使用的是JDK21 而构建1.20.1 forge 工作区需要JDK17 我已经在电脑上下载并安装了JDK17 但还是无法使用 有没有大佬帮帮我
日志:
Executing Gradle synchronization tasks
Build info: MCreator 2025.3.45720, forge-1.20.1, 64-bit, 8092 MB, Windows 10, JVM 21.0.8, JAVA_HOME: D:\MCR\MCreator\jdk, started on: 2026-05-23-16:36:10
> Task :createMinecraftArtifacts
> Task :createMinecraftArtifacts FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':createMinecraftArtifacts'.
> Error while evaluating property 'toolsJavaExecutable' of task ':createMinecraftArtifacts'.
> Failed to calculate the value of task ':createMinecraftArtifacts' property 'toolsJavaExecutable'.
> Cannot find a Java installation on your machine (Windows 10 10.0 amd64) matching: {languageVersion=17, vendor=any vendor, implementation=vendor-specific, nativeImageCapable=false}. Some toolchain resolvers had provisioning failures: foojay (Unable to download toolchain matching the requirements ({languageVersion=17, vendor=any vendor, implementation=vendor-specific, nativeImageCapable=false}) from 'https://api.foojay.io/disco/v3.0/ids/4d65f19c26cef5b0734056c13a38d338/redirect', due to: Could not HEAD 'https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.19+10/OpenJDK17U-jdk_x64_windows_hotspot_17.0.19_10.zip'.).
* Try:
> Learn more about toolchain auto-detection and auto-provisioning at https://docs.gradle.org/9.2.0/userguide/toolchains.html#sec:auto_detection.
> Learn more about toolchain repositories at https://docs.gradle.org/9.2.0/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 generate a Build Scan (powered by Develocity).
> Get more help at https://help.gradle.org.
BUILD FAILED in 1m 55s
1 actionable task: 1 executed
BUILD FAILED
Task completed in 1 minute and 56 seconds


 
请登录之后再进行评论