java - What's the difference between the following two ways to create an executable JAR? -


i reading on how-to create jar file in java , way :

jar cmf mainclass.txt example.jar *.class 

i curious why use *.class rather saying example.class ? have directory many class files, how know 1 use? here how directory looks. thanks!

edit: lot created new directory , saved 50% bytes!

* wildcard shell , expands match files end .class in current directory.

if don't want ... instead list specific .class files want add.

typically use *.class because .class files in directory make project, , of them needed in .jar.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -