Topic category: Help with MCreator software
So, without any yapping. Heres my issue: When i try to Run or Export my mod mcreator outputs an error message. Basically it says i have java 21 installed THOUGH if i type java --version in the terminal it does actually say 17 (2024.4 | Forge 1.20.1)
Build info: MCreator 2024.4.52410, forge-1.20.1, 64-bit, 48494 MB, Windows 11, JVM 21.0.4, JAVA_HOME: C:\Program Files\Pylo\MCreator\jdk, started on: 2026-01-12-12:45:40
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':compileJava'.
> Could not resolve all dependencies for configuration ':compileClasspath'.
> 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 internal failures: foojay (Read timed out).
* 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_repo….
> 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 25s
2024.4 is no longer supported. Use 2025.3 with 1.20.1 plugin and if you have same problem, reach out to plugin author
I had the same issue with 2025.3, But it thinks i had java 9 instead of 17
also on 2025.3 with the plugin its even worse, i cannot create a workspace there
Try deleting gradle folder as explained at https://mcreator.net/wiki/gradle-setup-errors and then make sure antivirus is not blocking Gradle or MCreator