mojira.dev
MC-298628

Minecraft Java Edition crashes on launch with exit code 2

After installing fresh Minecraft, it crashes immediately on startup with exit code 2. Even after installing Java 17 (Temurin)

  1. Java works in CMD (java -version shows the correct version).,

  2. I tried removing all JVM arguments (only using -Xmx2G),

  3. Reinstalled Minecraft completely (deleted .minecraft),

  4. Tried setting Path to java folder,

No logs are generated in .minecraft/logs, and no crash reports are produced.

Environment

Minecraft Version:1.21.5

Launcher: Minecraft Official Launcher (Microsoft Store version)

Java Version: Temurin OpenJDK 17.0.11 (x64)

OS: Windows 11 Home, 64-bit

RAM: 32 GB

CPU:AMD ryzen 5 7500f

Graphics:rx7700xt steel legend

Attachments

Comments 1

Thank you for your report!

However, this issue has been temporarily closed as Awaiting Response.

Does the issue occur also with older versions of the game?

This ticket will automatically reopen when you reply.

Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki

Miłosz

(Unassigned)

Unconfirmed

(Unassigned)

1.21.5

Retrieved