Re: Is there really no wildcard adding for "jar -cvf my.jar classes\*.class" ?
- From: Donkey Hot <spam@xxxxxxxxxxxxxxxxx>
- Date: 29 Apr 2008 05:38:13 GMT
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.
.
- Follow-Ups:
- Prev by Date: Re: Is there really no wildcard adding for "jar -cvf my.jar classes\*.class" ?
- Next by Date: Re: Is there an option for auto-create output dirs when compiling with javac?
- Previous by thread: Re: Is there really no wildcard adding for "jar -cvf my.jar classes\*.class" ?
- Next by thread: Re: Is there really no wildcard adding for "jar -cvf my.jar classes\*.class" ?
- Index(es):
Relevant Pages
|
|