Forge and NeoForge installers fail on Minecraft 1.21.1 with UnsupportedClassVersionError

Offen
#8,118 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
52/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
java, rust
Bereich
backend

Rechercherichtung

Start by tracing how the app selects the managed Java runtime and passes it to Forge and NeoForge loader processors; the report names no source files or tests. Compare the required class file version 70 with the runtime's maximum of 65, then check where loader metadata or installer runtime compatibility is determined. Done means Forge 52.1.20 and NeoForge 21.1.265 can install Minecraft 1.21.1 with the supported runtime.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

app
Please confirm the following.
  • I checked the existing issues for duplicate problems
  • I have tried resolving the issue using the support portal
  • I have ensured my Modrinth App installation is up to date
What version of the Modrinth App are you using?

0.22.0

What operating systems are you seeing the problem on?

Windows

Describe the bug

I'm using Modrinth App 0.22.0 on Windows 11. Fabric works normally, but both Forge and NeoForge fail when installing Minecraft 1.21.1, including in clean, newly created instances

java.lang.UnsupportedClassVersionError: net/minecraftforge/installertools/ConsoleTool has been compiled by a more recent version of the Java Runtime (class file version 70.0), this version of the Java Runtime only recognizes class file versions up to 65.0

Java 21 is installed through Modrinth's managed Java installations. Clearing the cache and reinstalling Java 21 did not fix the issue.

Reproduced with:

NeoForge 21.1.265

Forge 52.1.20

Both fail during loader processors. This appears to be a shared installer runtime or metadata compatibility issue.

Steps to reproduce

Create a new instance in either Neoforge or Forge

If it works, continue and start the game

Expected behavior

Install fails, or fails when launching

Additional context

No response

Vorherrschende Sprache
Rust
Sterne
2.5k
Forks
663
Ø Merge
2 T. 11 Std.
Gemergte PRs (30 T.)
122

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus modrinth/code

Alle Issues in modrinth/code

Ähnliche Issues

Weitere Issues zu Rust

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.