Minecraft Error: Could not find or load main class
My full error:
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
I just installed Minecraft 1.8.9 on OSX El Capitan and tried to play offline since my wifi connection has some issues, and I ran into the error above.
Here is the log link: https://gist.github.com/leongaban/08bc199c463d70b25dcc
Do you have any idea how to fix this?
Best Answer
I think I have had this problem before. Open a terminal and type:
sudo update-ca-certificates
That might work, although I am not sure.
Also, make sure you have played Minecraft once when you are online.
Pictures about "Minecraft Error: Could not find or load main class"



How do you fix the error could not find or load main class?
Could Not Find or Load Main Class in JavaWhat does could not find or load main class mean?
When you get the message "Could not find or load main class ...", that means that the first step has failed. The java command was not able to find the class. And indeed, the "..." in the message will be the fully qualified class name that java is looking for.How do you fix Minecraft basic errors?
Sign out of all Minecraft accounts (including the attached Microsoft account) and close out any open Minecraft application. Restart the game, then sign back into the Minecraft and Microsoft account(s) If you still see the error: repeat the steps above after waiting 1 hour, including internet troubleshooting steps.How do I fix Java errors in Minecraft?
The most common cause of the JNI error while trying to set up a Minecraft server is due to the Java version installed on the machine being outdated. Fortunately, it's easy enough to fix this issue via simply updating Java.Java error: could not find or load main class - Fixed
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Yan Krukov, Yan Krukov, Yan Krukov, Yan Krukov
