After installing fresh Minecraft, it crashes immediately on startup with exit code 2. Even after installing Java 17 (Temurin)
Java works in CMD (java -version shows the correct version).,
I tried removing all JVM arguments (only using -Xmx2G),
Reinstalled Minecraft completely (deleted .minecraft),
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
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