Failed to load Main-Class manifest attribute

后端 未结 6 1859
粉色の甜心
粉色の甜心 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 17:21

    You need to set the Main-Class attribute in the manifest of your jar. See the java tutorial link below for details.

    http://download.oracle.com/javase/tutorial/deployment/jar/appman.html

提交回复
热议问题