有没有大佬来帮一下
mcreator吧
全部回复
仅看楼主
level 4
恶臭小鼠 楼主
我电脑e盘已经有jdk了
Executing Gradle task: runClient
Build info: MCreator 2025.1.13416, forge-1.20.1, 64-bit, 32712 MB, Windows 10, JVM 21.0.5, JAVA_HOME: E:\MCreaor\MCreator\jdk, started on: 2025-05-10-11:33:20
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'ExampleMod'.
> Could not create task ':runClient'.
> Failed to calculate the value of task ':compileJava' property 'javaCompiler'.
> Cannot find a Java installation on your machine matching this tasks requirements: {languageVersion=17, vendor=any, implementation=vendor-specific} for WINDOWS on x86_64.
> No matching toolchain could be found in the locally installed toolchains or the configured toolchain download repositories. Some toolchain resolvers had provisioning failures: foojay (Unable to download toolchain matching the requirements ({languageVersion=17, vendor=any, implementation=vendor-specific}) from 'https://api.foojay.io/disco/v3.0/ids/2d57bdd1e17a18f83ff073919daa35ba/redirect', due to: Could not HEAD 'https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.15+6/OpenJDK17U-jdk_x64_windows_hotspot_17.0.15_6.zip'.).
* Try:
> Learn more about toolchain auto-detection at https://docs.gradle.org/8.8/userguide/toolchains.html#sec:auto_detection.
> Learn more about toolchain repositories at https://docs.gradle.org/8.8/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.
BUILD FAILED in 6s
BUILD FAILED
Task completed in 7 seconds
2025年05月10日 03点05分 1
level 8
我记得mcr是用的单独的,你电脑下载的jdk是不认的?不知道记错没有
你这个应该是构建失败了,建议去找找如何成功构建的视频
2025年05月10日 06点05分 2
大佬救救啊 工作区是构建好了的
2025年05月10日 08点05分
@恶臭小鼠 那我也无能为力了,回想一下你做了什么改动?
2025年05月10日 09点05分
level 9
mcr是gradle下载的jdk,mcr自带的jdk是21,因此forge1.20.1需要gradle下载jdk17,但下载网址在国外,你连不上就会报错了。。。
2025年05月10日 09点05分 3
我下好了jdk17 还是这样的报错
2025年05月11日 00点05分
@恶臭小鼠 mcr需要gradle自带jdk,你下的没卵用
2025年05月11日 10点05分
@恶臭小鼠 移民到美国可以享受无墙快乐
2025年05月11日 10点05分
@lightiar 那很舒服了
2025年05月11日 13点05分
level 1
mcr用的是gradle的jdk,mcr2024.2及以上的版本gradle的jdk都是21版本,所以运行forge1.20.1时要另外下载jdk17,但是国内墙了,所以请求超时,自己电脑上的jdk-17 mcr是不会识别使用的,就会报错说cannot find java17你可以选择将版本降到mcr2024.1,这个版本的mcr的gradle用的是jdk-17版本,可以直接运行forge1.20.1
2025年06月19日 13点06分 4
写了
2025年07月02日 08点07分
1