Skip to content
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
Zitrone30:mc.1.21.11
Feb 13, 2026
Merged

Fix: Target Java 21 for Minecraft compatibility#103
Kiriyaga7615 merged 3 commits intoNamiDevelopment:mc.1.21.11from
Zitrone30:mc.1.21.11

Conversation

@Zitrone30
Copy link
Copy Markdown
Contributor

Set Java toolchain to version 21 in client build configuration. Minecraft 1.21.11 requires Java 21, not Java 23.

Zitrone30 and others added 2 commits February 13, 2026 19:00
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.
@Zitrone30
Copy link
Copy Markdown
Contributor Author

If you had java 23 installed it would build with it and not run

Copy link
Copy Markdown
Member

@Kiriyaga7615 Kiriyaga7615 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i have java 23 i think also on my pc never experienced any issues, loom just picks up version from api, r u sure?

Comment thread nami-client/build.gradle

java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i mean why not also

@Kiriyaga7615 Kiriyaga7615 merged commit c441efe into NamiDevelopment:mc.1.21.11 Feb 13, 2026
2 checks passed
@Zitrone30
Copy link
Copy Markdown
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.

╰$ java -version java version "23" 2024-09-17 Java(TM) SE Runtime Environment (build 23+37-2369) Java HotSpot(TM) 64-Bit Server VM (build 23+37-2369, mixed mode, sharing)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants