.jar file will not open on my Mac

This question already has an answer here:

  • What does “Could not find or load main class” mean? 39 answers

  • Inside the jar, there should be a file:

    META-INFMANIFEST.MF
    

    Inside this text file, you should have at least:

    Main-Class: net.minecraft.client.Main
    

    and make sure you have this inside the jar:

    net-.
        |
        minecraft-.
                  |
                  client-.
                         |
                         Main.class
    

    Any extra jars should be listed with the manifast element Class-Path .


    For more no this:

  • Working with Manifest Files: The Basics
  • 链接地址: http://www.djcxy.com/p/54976.html

    上一篇: cmd错误:无法找到或加载主类

    下一篇: .jar文件无法在我的Mac上打开