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 -

Socket.connect doesn't throw exception in Android -

iphone - How do I keep MDScrollView from truncating my row headers and making my cells look bad? -