Error: Could not find or load main class net.minecraft.client.main.Main
The launcher appears to launch and finalize launching but immediately crashes with [quote] Exit Code 0 [unquote] due to cannot load net.minecraft.client.main.Main (as shown by the attachments).
P.S. I found it occuring on both 1.12.2 (previously-downloaded), 1.17.1 (newly-downlaoded) and 21w39a (tried both), suggesting that it’s potentially regardless of Minecraft version.
Relates to the other bajillion “Error Code 0” issues.
Environment
Windows 11, Bundled Java version (all shouldn’t matter)
Created Issue:
Error: Could not find or load main class net.minecraft.client.main.Main
The launcher appears to launch and finalize launching but immediately crashes with [quote] Exit Code 0 [unquote] due to cannot load net.minecraft.client.main.Main (as shown by the attachments).
Relates to the other bajillion “Error Code 0” issues.
Environment
Windows 11, Bundled Java version (all shouldn’t matter)
The launcher appears to launch and finalize launching but immediately crashes with [quote] Exit Code 0 [unquote] due to cannot load net.minecraft.client.main.Main (as shown by the attachments).
I found it occuring on both 21w39a, 1.17.1 and 1.12.2.Relates to the other bajillion “Error Code 0” issues.
The launcher appears to launch and finalize launching but immediately crashes with [quote] Exit Code 0 [unquote] due to cannot load net.minecraft.client.main.Main (as shown by the attachments).
I found it occuring on both 21w39a, 1.17.1 and 1.12.2.Relates to the other bajillion “Error Code 0” issues.
The launcher appears to launch and finalize launching but immediately crashes with [quote] Exit Code 0 [unquote] due to cannot load net.minecraft.client.main.Main (as shown by the attachments).
I found it occuring on both 21w39a, 1.17.1 and 1.12.2, suggesting that it’s potentially regardless of Minecraft version.Relates to the other bajillion “Error Code 0” issues.
The launcher appears to launch and finalize launching but immediately crashes with [quote] Exit Code 0 [unquote] due to cannot load net.minecraft.client.main.Main (as shown by the attachments).
I found it occuring on both21w39a, 1.17.1 and1.12.2, suggesting that it’s potentially regardless of Minecraft version.Relates to the other bajillion “Error Code 0” issues.
The launcher appears to launch and finalize launching but immediately crashes with [quote] Exit Code 0 [unquote] due to cannot load net.minecraft.client.main.Main (as shown by the attachments).
P.S. I found it occuring on both 1.12.2 (previously-downloaded), 1.17.1 (newly-downlaoded) and 21w39a (tried both), suggesting that it’s potentially regardless of Minecraft version.Relates to the other bajillion “Error Code 0” issues.
I can confirm as I got hit by this too. My relative path is minecraft, but attempting to launch Minecraft (any version) results in a crash (exit code 0; Error: Could not find or load main class net.minecraft.client.main.Main) (which I contextless reported at MCL-19780 (I’ll ask that be closed as “Incompete”))


P.S. Does not affect Minecraft Dungeons
Thank you for your report!
However, this issue is Invalid.
This is a technical support issue; this site is for bug reports only. We do not have the resources to provide you with technical support.
Please contact Community Support for assistance and refer to this ticket (e.g. "I have reported this issue on Mojira as MCL-XYZ.").
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
@Whomsky Thank you for your direction. I have identified my root issue to be
MCL-14155. I request this ticket be closed as “Incomplete”.