java - Wrong Manifest.mf in IntelliJ IDEA created .jar -


i'm trying package project using optaplanner 6.0.1 libraries .jar through intellij idea's jar artifact instead of manifest.mf containing standard

manifest-version: 1.0 main-class: a.b.c.app 

the jar uses 1 supplied in ecj-3.7.2.jar, 1 of optaplanner's supporting libraries:

manifest-version: 1.0 build-jdk: 1.6.0_26 built-by: ibrandt created-by: apache maven archiver-version: plexus archiver 

because of this, "no main manifest attribute, in appname.jar" error happens when trying run app. if manually replace manifest in .jar file mine works correctly. there can fix this?

i keep libraries in separate /lib directory , added root of jar artifact extracted directory, intellij idea v13.0.1.

i had same problem.

make sure manifest.mf in:

src/main/resources/meta_inf/ 

not

src/main/java/meta_inf/ 

Comments

Popular posts from this blog

dns - How To Use Custom Nameserver On Free Cloudflare? -

python - Pygame screen.blit not working -

c# - Web API response xml language -