Re: Importing from a Jar file WITHOUT unzipping it



Lew wrote:
Andreas Leitgeb wrote:
Lew <noone@xxxxxxxxxxxxx> wrote:
Mark Space wrote:
Just pointing to the directory won't work, that's for loose classes.
It will if you wildcard the directory:
-classpath /some/path/lib/*

Are you talking about some new feature of 1.6.0_10 here?

<http://java.sun.com/javase/6/docs/technotes/tools/solaris/classpath.html>
Class path entries can contain the basename wildcard character *, which is considered equivalent to specifying a list of all the files in the directory with the extension .jar or .JAR.

It came out before update 10.

If you're using obsolete or obsolescent versions of Java, YMMV.

Based on the copyright date, this feature has been in place for two years now.

--
Lew
.



Relevant Pages

  • Re: Importing from a Jar file WITHOUT unzipping it
    ... in the directory with the extension .jar or .JAR. ... If you're using obsolete or obsolescent versions of Java, ... this feature has been in place for two years now. ...
    (comp.lang.java.programmer)
  • Re: Importing from a Jar file WITHOUT unzipping it
    ... considered equivalent to specifying a list of all the files in the directory with the extension .jar or .JAR. ... If you're using obsolete or obsolescent versions of Java, ...
    (comp.lang.java.programmer)
  • Re: Unable to execute program using the jar option.
    ... by specifying the class directly it runs just ... looks only in the JAR manifest for its class paths. ... You can only specify one JAR file, which must contain all the application-specific code. ... all user classes come from the specified archive. ...
    (comp.lang.java.programmer)
  • Unable to execute program using the jar option.
    ... by specifying the class directly it runs just ... (specifying the jar file to run) ... Exception: I believe the exact Exception is irrelevant to this issue ... path definately has the jar file that contains the class the exception ...
    (comp.lang.java.programmer)
  • Re: Extension problem Mac OS X (launching of external jar doesnt work)
    ... > copied the jar (the extension) to all three possible extension ... > This works fine on windows and linux but Mac OS X throws a ... The extensions folder in OS X is ... What you need to do is place whatever .jar file that you want to use as ...
    (comp.lang.java.programmer)