Failed to load Main-Class manifest attribute

后端 未结 6 1753
粉色の甜心
粉色の甜心 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:14

    Create executable jar( and not plain jar file). You get this option in eclipse while exporting jar file. I was facing same issue and it resolved once I created the executable jar.

    Create batch file as : java -jar "abc.jar" ..

提交回复
热议问题