Forge and NeoForge installers fail on Minecraft 1.21.1 with UnsupportedClassVersionError

Aberta
#8,118 1 comentário 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
52/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
java, rust
Domínio
backend

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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

Linguagem predominante
Rust
Estrelas
2.5k
Forks
663
Merge médio
2d 11h
PRs com merge (30d)
122

Preparar o ambiente

Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de modrinth/code

Todas as issues de modrinth/code

Issues semelhantes

Mais issues de Rust

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.