java - Does `jar` have a flag to set the default class for the .jar file to be created? -
or still need write manifest.mf
file manually this?
you can invoke jar
command -e
parameter. not have manually add manifest then. jar -help
-e specify application entry point stand-alone application bundled executable jar file
an example here
jar cfe main.jar foo.main foo/main.class
Comments
Post a Comment