How to setup Main class in manifest file in jar produced by NetBeans project

前端 未结 10 1822
我在风中等你
我在风中等你 2020-11-29 10:25

I have the following problem. I have a Java project in my NetBeans IDE 6.8. When I compile it and it produces a .jar file containing everything possible, the META-INF is not

10条回答
  •  长情又很酷
    2020-11-29 10:34

    It is simple.

    • Right click on the project
    • Go to Properties
    • Go to Run in Categories tree
    • Set the Main Class in the right side panel.
    • Build the project

    Thats it. Hope this helps.

提交回复
热议问题