This repository was archived by the owner on Mar 5, 2026. It is now read-only.
Fix: Target Java 21 for Minecraft compatibility#103
Merged
Kiriyaga7615 merged 3 commits intoNamiDevelopment:mc.1.21.11from Feb 13, 2026
Merged
Fix: Target Java 21 for Minecraft compatibility#103Kiriyaga7615 merged 3 commits intoNamiDevelopment:mc.1.21.11from
Kiriyaga7615 merged 3 commits intoNamiDevelopment:mc.1.21.11from
Conversation
Set Java toolchain to 21 (Minecraft requires Java 21)
Set Java toolchain to version 21 in client build configuration. Minecraft 1.21.11 requires Java 21, not Java 23.
Contributor
Author
|
If you had java 23 installed it would build with it and not run |
Member
Kiriyaga7615
left a comment
There was a problem hiding this comment.
i have java 23 i think also on my pc never experienced any issues, loom just picks up version from api, r u sure?
Kiriyaga7615
approved these changes
Feb 13, 2026
|
|
||
| java { | ||
| toolchain { | ||
| languageVersion = JavaLanguageVersion.of(21) |
Contributor
Author
|
It build with Java 23 for me and crashed https://mclo.gs/kK5amIZ This change fixed it. Maybe Java 23 isn't your system default.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Set Java toolchain to version 21 in client build configuration. Minecraft 1.21.11 requires Java 21, not Java 23.