Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-121304

Cannot play due to "Error: Could not find or load main class net.minecraft.client.main.Main"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • Minecraft 1.12.2
    • None
    • Ubuntu 16.04.3 LTS

      java version "1.8.0_152"
      Java(TM) SE Runtime Environment (build 1.8.0_152-b16)
      Java HotSpot(TM) 64-Bit Server VM (build 25.152-b16, mixed mode)
    • Unconfirmed

      After starting with

      java -jar Minecraft.jar
      

      and login, minecraft downloads updates and creates the .minecraft directory.

      Then I press Play in the launcher window, and it switches to the Game Output tab and after a short while (downloading something) shows this:

      Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
      Error: Could not find or load main class net.minecraft.client.main.Main
      

      This happens in exactly the same way on two linux computers, same version of linux and java.
      On both, the installation is fresh, minecraft has never been there before.

      Also the console log does not seem to be very informative:

      ...
      [19:45:16 INFO]: Finished downloading /home/pk/.minecraft/libraries/it/unimi/dsi/fastutil/7.1.0/fastutil-7.1.0.jar for job 'Version & Libraries': Local file matches hash, using that
      [19:45:16 INFO]: Job 'Version & Libraries' finished successfully (took 0:00:00.551)
      [19:45:16 INFO]: Launching game
      [19:45:16 INFO]: Unpacking natives to /home/pk/.minecraft/versions/1.12.2/1.12.2-natives-507360352285038
      [19:45:16 INFO]: Launching in /home/pk/.minecraft
      [19:45:16 INFO]: Half command: /home/pk/opt/jdk1.8.0_152/jre/bin/java -Xmx1G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M net.minecraft.client.main.Main
      [19:45:16 INFO]: Looking for orphaned versions to clean up...
      [19:45:16 INFO]: Looking for old natives & assets to clean up...
      [19:45:16 ERROR]: java.io.IOException: Stream closed
      [19:45:16 ERROR]: java.io.IOException: Stream closed
      [19:45:16 ERROR]: java.io.IOException: Stream closed
      [19:45:16 ERROR]: java.io.IOException: Stream closed
      ... (above line repeats 89 times in total) ...
      [19:45:16 ERROR]: java.io.IOException: Stream closed
      [19:45:16 ERROR]: java.io.IOException: Stream closed
      [19:45:16 ERROR]: java.io.IOException: Stream closed
      [19:45:16 ERROR]: Game ended with bad state (exit code 1)
      [19:45:16 INFO]: Ignoring visibility rule and showing launcher due to a game crash
      [19:45:16 INFO]: Deleting /home/pk/.minecraft/versions/1.12.2/1.12.2-natives-507360352285038
      

      (ended in the state where the window is still open)

      BTW this problem looks similar to MC-69840 but no jdk/minecraft wipeout and reinstallation helps.

      Any ideas?

            Unassigned Unassigned
            pkozelka Petr Kozelka
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: