Failed to load Main-Class manifest attribute

后端 未结 6 1741
粉色の甜心
粉色の甜心 2021-01-25 16:45

I know this is a very common question, but I tried googling and got no helpful result. I\'m trying to make a jar out of my \"Main.class\" file (made in NetBeans, but I\'m not tr

6条回答
  •  北海茫月
    2021-01-25 16:58

    Create a file called well, anything really, but we'll call it manifest.txt

    Open manifest.txt and type:

    Main-Class: Main
    

    then to create your jar, type

    jar cfm trovanum.jar manifest.txt *.class
    

    And it should run fine.

提交回复
热议问题