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




Catherina Svensson wrote on 28.04.2008 21:50:
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.

jar -cvf my.jar -C classes .

should work (note: capital C before classes and the . after that)

Thomas

.



Relevant Pages

  • Re: How to set the memory switches in JAR Executable
    ... You challenged my statement that the memory map internally, ... decisions the JVM makes based on the command line switches such as the ... command line switches inside the jar. ... Canadian Mind Products, Roedy Green. ...
    (comp.lang.java.help)
  • Re: How to set the memory switches in JAR Executable
    ... >> The problem is, by the time the jar is loaded, the JVM is already ... >> loaded and has already laid out its memory map. ... The JNLP file is NOT inside the jar. ...
    (comp.lang.java.help)
  • Re: InvalidClassException question
    ... >and remote) use the same class, in the same jar, and run in the same JVM ... >(which rules out the 1st reason). ...
    (comp.lang.java.programmer)
  • Re: Getting a list of Classes in a Package
    ... People should be required to pass some sort of exam before submitting FREs. ... Going back to your original question: if you want to know what files (in the ... package they may end up being part of) then clearly you can't ask the JVM -- by ... in a JAR, or the JARs in a directory, then there are perfectly straightforward ...
    (comp.lang.java.programmer)
  • Re: stack trace: why doenst it show the line number ?
    ... Walter Stucki schrieb: ... > Case a) JVM shows in the stack trace the line number if I'm running my ... > Case b) The JVM doesn't show the line number information if I'm ... > the application is running as a jar? ...
    (comp.lang.java.programmer)