简体   繁体   中英

Compile JAR with manifest inside JAR?

With IntelliJ IDEA;

How would I make it so that the JAR can run anywhere without needing the META INF? (Or the Meta INF being inside the JAR??).

At the moment, I plop the JAR on my VPS and it doesn't have the METAINF.

Thank you,

When creating the artifact in IntelliJ, simply select your Main Class, and the manifest should be automatically generated. 在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM