mojira.dev
MC-121292

Error: Could not find or load main class net.minecraft.client.main.Main

I was playing minecraft for the last few days, started it this morning and everything worked. When I got back from Uni, I got this error (title) when I try to launch the game (after login in, when I press "play") .
Also tried to install it on another machine, which is also running linux mint, and I had the exact same error:

[17:50:57 INFO]: Job 'Version & Libraries' finished successfully (took 0:00:00.253)
[17:50:57 INFO]: Launching game
[17:50:57 INFO]: Unpacking natives to /home/mee/.minecraft/versions/1.12.2/1.12.2-natives-152321717113
[17:50:57 INFO]: Launching in /home/mee/.minecraft
[17:50:57 INFO]: Half command: /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java -Xmx1G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M net.minecraft.client.main.Main
[17:50:57 INFO]: Looking for orphaned versions to clean up...
[17:50:57 INFO]: Looking for old natives & assets to clean up...
[17:50:57 ERROR]: java.io.IOException: Stream closed
[17:50:57 ERROR]: Game ended with bad state (exit code 1)
[17:50:57 INFO]: Ignoring visibility rule and showing launcher due to a game crash
[17:50:57 INFO]: Deleting /home/mee/.minecraft/versions/1.12.2/1.12.2-natives-152321717113

If I run the development version (the last snapshot) it works! But I am playing online with my friends therefore I need to be able to play the last stable version.

Linked issues

MC-8365 Vines not being attached to anything Resolved MC-8370 /tp command applied to player riding a pig will teleport them into a void Resolved MC-8373 Scoreboard display title does not display correctly until server restart. Resolved MC-8374 Mac Version 1.5.8 Crashes when loaded 13w04a Resolved MC-8375 Scoreboard bug Resolved

Attachments

Comments 136

I also tried running apt-get update and upgrade, to update my java version, but it did not help!

Confirmed Link Mint 18.2 using either latest builds for Java8 or Java9
Edit: While attempting to play vanilla 1.12.2, 1.12.1
Edit: The launcher title is "Minecraft Launcher unknown"

Game Output:
Error: Could not find or load main class net.minecraft.client.main.Main
Caused by: java.lang.ClassNotFoundException: net.minecraft.client.main.Main

Launcher Log (end):
[10:58:32 INFO]: Job 'Version & Libraries' finished successfully (took 0:00:00.214)
[10:58:32 INFO]: Launching game
[10:58:32 INFO]: Unpacking natives to /home/xavom/.minecraft/versions/1.12.2/1.12.2-natives-870597135905
[10:58:32 INFO]: Launching in /home/xavom/.minecraft/saves/1.12
[10:58:33 INFO]: Half command: /usr/lib/jvm/java-9-oracle/bin/java -Xmx2G net.minecraft.client.main.Main
[10:58:33 INFO]: Looking for orphaned versions to clean up...
[10:58:33 INFO]: Looking for old natives & assets to clean up...
[10:58:33 ERROR]: java.io.IOException: Stream closed
[10:58:33 ERROR]: Game ended with bad state (exit code 1)
[10:58:33 INFO]: Ignoring visibility rule and showing launcher due to a game crash
[10:58:33 INFO]: Deleting /home/xavom/.minecraft/versions/1.12.2/1.12.2-natives-870597135905

Jamie Adamberry

having the same sort of error on my computer :/

Exception in thread "main" java.lang.NoClassDefFoundError: net/minecraft/client/main/Main
Caused by: java.lang.ClassNotFoundException: net.minecraft.client.main.Main
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

Also having the same issue running on Debian

Same issue on Gallium OS of the "Main Class" mission. was working perfectly fine about 1 hour ago.

126 more comments
Fernando Amorim

I had identified that the error can also be caused due to two DEPRECIATED OPTIONS in JVM Arguments for launching the game!

A possible fix including enabling experimental development versions, is to remove these options in the arguments of JVM: "+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:", I had detected the error because of a warning that was shown at the Game Output telling that the JVM couldn't be started as result of the depreciated option.

SpikeZarkSpike

I believe the java CMS warning on startup is a red herring. It issues this warning even when it runs normally. The warning is a warning, not an error. It says CMS is deprecated and may be removed in future. For now, this flag still works.

SpikeZarkSpike

I get this same error when offline and attempting to Play Offline

Launcher version 1.6.89-j
Linux Mint 18.3
Open JDK 1.8.0_212
Minecraft 1.14.2

I am experiencing this on Windows 10 as well. This ticket needs to be reopened.

This was a temporary issue in the original release of 1.12.2 that has been hotfixed and is no longer in the game. If you have this issue, please contact ๐Ÿ’ฌ Community Support instead, as this is a technical support issue.

Quick Links:
๐Ÿ““ Issue Guidelines โ€“ ๐Ÿ’ฌ Community Support โ€“ ๐Ÿ“ง Customer Support โ€“ ๐Ÿ“– Game Wiki

Matth

(Unassigned)

Community Consensus

Minecraft 1.12.2

Minecraft 1.12.2

Retrieved