Re: Is there really no wildcard adding for "jar -cvf my.jar classes\*.class" ?



gremlin@xxxxxxxxxxx (Catherina Svensson) wrote in
news:48162a7a$0$7540$9b4e6d93@xxxxxxxxxxxxxxxxxxxxxxxxxxx:

When I try to execute a jar command like the following:

jar -cvf my.jar classes\*.class

then JVM gives me an error about non-existing files/folders.

However when I specify all the class files in detail:

jar -cvf my.jar classes\a.class classes\b.class ..... classes\z.class

then everything is fine.

Is there really no flag/option to let users pass wildcards for jar
adding operations ?

Cat



Correct format is

jar -cvf my.jar classes

Classpath contains DIRECTORIES or/and jar.files. All classes in those
dirctories and jar-files are in.

.



Relevant Pages