Creating Jar with Intellij 2016 - No main manifest attribute

后端 未结 10 1738
清歌不尽
清歌不尽 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:44

    In IntelliJ Idea 2020

    Follow the instructions in this video.

    When you get to the Artifact creation point (Ctrl + Shift + Alt + S) change the location of the manifest as shown here. (\src\main\resources)

提交回复
热议问题