Creating Jar with Intellij 2016 - No main manifest attribute

后端 未结 10 1866
清歌不尽
清歌不尽 2021-01-30 16:03

I am getting no main manifest attribute while running the jar create by Intellij. I extracted the jar and observed that there was another manifest

10条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-30 16:33

    Under File / Project structure / Artifacts you can specify how your jar is to be built. You can chose either to use an existing file as your manifest, or create a new one, in which case you specify main class and class path...

提交回复
热议问题