Skip to content

[BUG] Minecraft 1.21 causes UnsupportedClassVersionError #1618

@Supermarcel10

Description

@Supermarcel10
  • I searched the issue tracker for other issues covering my case
  • This is a Launcher issue. (Usually if you can reproduce it with a fresh instance)

Describe the bug
An UnsupportedClassVersionError is thrown during startup of vanilla Minecraft 1.21.

To Reproduce
Steps to reproduce the behavior:

  1. Open GDLauncher
  2. Install Vanilla 1.21
  3. Run

Expected behavior
No error is thrown

Possible solutions
Update the launcher to use JDK21 in order to support Minecraft 1.21. It currently seems that GDLauncher assigns JDK17 despite JDK21 installed and present on the system.

It's possible to currently overcome this by simply setting "Custom Java Path" in Properties to JDK21.

Screenshots
image

Operating System:

  • OS: Windows 10 22H2
  • Launcher Version: 1.1.30
  • Java Versions:
    • 1.8.0_312-b07
    • 17.0.1+12
    • 21.0.3+7-LTS-152
  • Minecraft Version: 1.21
  • Mod Loader: N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions