manifest.mf is overwritten by ecplise during jar export

Posted by freedev on Stack Overflow See other posts from Stack Overflow or by freedev
Published on 2010-06-15T13:39:23Z Indexed on 2010/06/15 13:42 UTC
Read the original article Hit count: 278

Hello guys,

I would like make an executable jar archive with eclipse. So into my project I created file src/META-INF/MANIFEST.MF :

Manifest-Version: 1.0
Main-Class: MainClass
Class-Path: .

But when I export my java eclipse project eclipse warn me with following message:

"JAR export finished with warnings. See details for additional information. myproject/src/META-INF/MANIFEST.MF was replaced by the generated MANIFEST.MF and is no longer in the JAR."

Anyone know how I can avoid this when I export my project in eclipse?

© Stack Overflow or respective owner

Related posts about eclipse

Related posts about jar