Need help , Mcreator said cannot find a Java installation on your machine, but i have already install java 17.

Started by beneopiola on

Topic category: Troubleshooting, bugs, and solutions

Joined Sep 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Need help , Mcreator said cannot find a Java installation on your machine, but i have already install java 17.

im try to build a workspace but faild.

 

log:

Executing Gradle synchronization tasks
Build info: MCreator 2025.2.28610, forge-1.20.1, 64-bit, 32048 MB, Windows 11, JVM 21.0.7, JAVA_HOME: D:\MCreator\jdk, started on: 2025-09-11-13:34:34

> 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 11 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/16008c489780dfb402c44316e612a16c/r…', due to: Could not HEAD 'https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17…'.).
* Try:
> Learn more about toolchain auto-detection and auto-provisioning at https://docs.gradle.org/8.14.2/userguide/toolchains.html#sec:auto_detec….
> Learn more about toolchain repositories at https://docs.gradle.org/8.14.2/userguide/toolchains.html#sub:download_r….
> 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 6m 2s
1 actionable task: 1 executed

BUILD FAILED
Task completed in 6 minutes and 2 seconds

 

NEED HELP.