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



Catherina Svensson wrote:
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


You have a package problem. Class a must be in the package classes.

--

Knute Johnson
email s/nospam/linux/

--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
------->>>>>>http://www.NewsDemon.com<<<<<<------
Unlimited Access, Anonymous Accounts, Uncensored Broadband Access
.



Relevant Pages

  • Re: How to find a .class file in a bunch of JARs?
    ... I'm on Solaris 9. ... Does anyone know of a way to search through JAR ... Posted via NewsDemon.com - Premium Uncensored Newsgroup Service ... Unlimited Access, Anonymous Accounts, Uncensored Broadband Access ...
    (comp.lang.java.programmer)
  • Re: How to find a .class file in a bunch of JARs?
    ... I'm on Solaris 9. ... Does anyone know of a way to search through JAR ... Posted via NewsDemon.com - Premium Uncensored Newsgroup Service ... Unlimited Access, Anonymous Accounts, Uncensored Broadband Access ...
    (comp.lang.java.programmer)
  • Re: ProcessBuilder.start() without waiting?
    ... Then it will exit when the process stops. ... Jar files don't need the .jar extension to work by the way. ... Posted via NewsDemon.com - Premium Uncensored Newsgroup Service ... Unlimited Access, Anonymous Accounts, Uncensored Broadband Access ...
    (comp.lang.java.programmer)
  • Re: Is there really no wildcard adding for "jar -cvf my.jar classes*.class" ?
    ... However when I specify all the class files in detail: ... Is there really no flag/option to let users pass wildcards for jar adding operations? ... Posted via NewsDemon.com - Premium Uncensored Newsgroup Service ... Unlimited Access, Anonymous Accounts, Uncensored Broadband Access ...
    (comp.lang.java.help)
  • Re: Is there really no wildcard adding for "jar -cvf my.jar classes*.class" ?
    ... jar -cvf my.jar classes\*.class ... That will include all the files in the classes directory, not just ..class files. ... Unlimited Access, Anonymous Accounts, Uncensored Broadband Access ...
    (comp.lang.java.help)