java - How to build an executable jar file with Ant -


i'm developing swing based application in java want executable jar file project.

all external library files used in project should packaged in jar file.

how can build runnable jar file using ant?

but needs external library files used in project should along jar.

of course, external jars should not bundled in executable jar.

you need 3 things:

  1. create manifest executable jar specifies main-class.
  2. add classpath manifest spells out location of each , every dependent jar relative executable jar.
  3. create zip file contains executable jar , dependent jars, paths relative executable jar specified in manifest.

you give clients zip. unpack , execute executable jar.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -