How to make a Single JAR for the Project along with All dependencies without having main function

Answered

if you want to build jar for the application for which you don't have main function.

Create the artifact like the normal way by selecting the other option than empty one. but click on the radio button - copy to the output dir. and link via manifest this will create the manifest under Directory for META-INF/MANIFES.MF text box , then select the first radio button -extract to
the target JAR. then hit OK and rebuild the project . Clear /delete out dir. if there is one already present in the project directory.
and clear the MAIFEST.MF too.

0

Please sign in to leave a comment.