Using IntelliJ IDEA Community edition, making a Fabric mod for Minecraft 1.21.1, data generating and got the error in the topic
Here’s the full version:
Task :net.fabricmc.devlaunchinjector.Main.main() FAILED
Execution failed for task ':net.fabricmc.devlaunchinjector.Main.main()'.
> Failed to calculate the value of task ':net.fabricmc.devlaunchinjector.Main.main()' property 'javaLauncher'.
> The configured executable does not exist (C:\Program Files\Java\jdk-21\bin\java.exe)
* Try:
> 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 1s
3 actionable tasks: 1 executed, 2 up-to-date
Any help will be appreciated, thanks