
Can't build 1.19.4
pennilessSplatter opened this issue ยท 7 comments
What do you need help with?
I can't seem to build 1.19.4 baritone. I got this error:
FAILURE: Build failed with an exception.
- What went wrong:
java.util.concurrent.ExecutionException: org.gradle.api.GradleException: Failed to create Jar file /root/.gradle/caches/jars-9/524207a00651c6384d49944c64b6c399/buildSrc.jar.
org.gradle.api.GradleException: Failed to create Jar file /root/.gradle/caches/jars-9/524207a00651c6384d49944c64b6c399/buildSrc.jar.
- 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 3m 18s
2 actionable tasks: 2 executed
Final checklist
- I know how to properly use check boxes
- I have not used any OwO's or UwU's in this issue.
You need java 17 for the 1.19.4 branch (see here for 1.12.2 to 1.21.4)
I'm a bit concerned about it wanting to create a file in /root
then. You are not building as root, are you?
Besides that: Which java version are you using?
I'm a bit concerned about it wanting to create a file in
/root
then. You are not building as root, are you?Besides that: Which java version are you using?
Yes I am building as root. But I am using a sandbox environment.
My java version is:
openjdk 21.0.6
You need java 17 for the 1.19.4 branch (see here for 1.12.2 to 1.21.4)
Wow, thank you so much, I changed my java version and it worked. However I also redownloaded the code and it appears that the version I had didn't download properly or I didn't extract it properly, so that could be another reason.
Also you have been very helpful. Normally devs would say "that's a dumb question" and I was a bit worried to ask this question but you really helped and I'm genuinely thankful.
You need java 17 for the 1.19.4 branch (see here for 1.12.2 to 1.21.4)
Ohhh, really? Let me see if that works