java - Automate: export runnable jar, by Launch Configuration, Eclipse -


i develop java code using eclipse. when want runnable jar point , click in gui this:

file->export->runnable jar -> launch configuration (select maintest) --libraryhandling (extract required libraries generated jar)

i want automatically, how can in bash?

depending on in project , dependencies have, pretty complex using command line tools java provides. the java tutorial pretty in explaining usage of related tools ship java create jars, think people suggest using build tool maven or gradle command line builds.

if you're using jar tool though, basic example jar tool runnable main class being specified is:

jar cmf existing-manifest jar-file input-file(s) 

where existing-manifest manifest file specifies main class.


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -