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

前端 未结 10 1775
我在风中等你
我在风中等你 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:46

    This is a problem still as of 7.2.1 . Create a library cause you do not know what it will do if you make it an application & you are screwed.

    Did find how to fix this though. Edit nbproject/project.properties, change the following line to false as shown:

    mkdist.disabled=false

    After this you can change the main class in properties and it will be reflected in manifest.

提交回复
热议问题