Could not find or load main Class on JAR executing

后端 未结 2 1082
长情又很酷
长情又很酷 2020-12-10 20:15

I finished my project (in NetBeans) and i export Jar file (i set my main class in project properties correctly before exporting Jar):<

2条回答
  •  执笔经年
    2020-12-10 20:25

    Open your jar file with WinRAR or a similar program. Then go to the META-INF folder and open the MANIFEST.MF. Make sure the property "Main-Class: your.class.path" is correct.

提交回复
热议问题