Closed x123development closed 2 years ago
The runClient
task currently does not work with loom in general in older versions. Please use the genIntellijRuns
task to generate a run configuration and run this configuration.
Thanks for the clarification. Works like a charm!
As stated in the title, when trying to execute the "loom>runClient" task everything compiles successfully and is successfully assembled into a jar, but upon launching the task fails with the following error:
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':runClient'.
Try:
Get more help at https://help.gradle.org
BUILD FAILED in 13s 3:37:30 PM: Execution finished 'runClient'.
I am using IntelliJ and have set the Gradle jdk to 17 and the project jdk to 1.8 as stated in the readme. It seems, that the task tries to open Minecraft using the jdk 17 despite requiring jdk 1.8 to run. That is what I have found out, based on the Exception.
Running the mod with a fresh forge installation via the Minecraft launcher works fine. It's only the "runClient" task having issues.
I've attached the gradle config and build files as .txt here, in case that is important.
settings.gradle.kts.txt gradle.properties.txt build.gradle.kts.txt