Wrong Manifest.mf in IntelliJ IDEA created .jar

前端 未结 7 1974
-上瘾入骨i
-上瘾入骨i 2020-11-28 02:08

I\'m trying to package a project using OptaPlanner 6.0.1 libraries into a .jar through IntelliJ IDEA\'s jar artifact but instead of my manifest.mf containing the standard

7条回答
  •  醉话见心
    2020-11-28 02:27

    To have no problem like Manifest, you should have a directory named "META-INF" in "src" directory. So, create it and put a file named "MANIFEST.MF" in it with the following contents:

    Manifest-Version: 1.0
    Main-Class: .Main
    

    Not to forgot to replace the package's name containing Main class above!

提交回复
热议问题