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?

  • The java HotSpot part is always there, it's not a problem. Did it work when playing online? If you haven't tried, please do. Also, with the finder, go to ~/Libary/Application Support/minecraft/versions and check if there is a folder called 1.8.9 with two files in it (one .jar and one .json).
    – MrLemon
    Commented Dec 21, 2015 at 13:00
  • I can play both offline and online now, after a successful wifi connection.... I think it re-downloaded some stuff and it fixed it.
    – Leon Gaban
    Commented Dec 22, 2015 at 12:49
  • you should make that an answer.
    – MrLemon
    Commented Dec 22, 2015 at 15:52
  • Just curious, because of the first line in the log saying it could not connect to libraries.minecraft.net, could you ping that hostname and see if it times out or works? ping libraries.minecraft.net Edit: just to clarify, if it needs to download files from their server and it can't, that can cause problems, but I don't know if that would cause the error in your question.
    – dakre18
    Commented Jan 6, 2016 at 14:24

2 Answers 2


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.

  • More info on this: This updates the ca-certificates on Debian-based linux repos (Debian, Ubuntu, etc...), which are used to access the internet in certain scenarios.
    – AirOne01
    Commented Feb 6, 2023 at 15:32

After I was able to connect to Wifi again, the software updated and I was able to play online and offline with no problems.

Bug was trying to play Minecraft on Wifi in the Philippines.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .