Re: Importing from a Jar file WITHOUT unzipping it
- From: Lew <noone@xxxxxxxxxxxxx>
- Date: Wed, 29 Oct 2008 09:41:49 -0400
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
.
- Follow-Ups:
- Re: Importing from a Jar file WITHOUT unzipping it
- From: Andreas Leitgeb
- Re: Importing from a Jar file WITHOUT unzipping it
- References:
- Importing from a Jar file WITHOUT unzipping it
- From: Martyr2
- Re: Importing from a Jar file WITHOUT unzipping it
- From: Mark Space
- Re: Importing from a Jar file WITHOUT unzipping it
- From: Lew
- Re: Importing from a Jar file WITHOUT unzipping it
- From: Andreas Leitgeb
- Re: Importing from a Jar file WITHOUT unzipping it
- From: Lew
- Importing from a Jar file WITHOUT unzipping it
- Prev by Date: Re: Importing from a Jar file WITHOUT unzipping it
- Next by Date: Re: Error while running java : No public JRE
- Previous by thread: Re: Importing from a Jar file WITHOUT unzipping it
- Next by thread: Re: Importing from a Jar file WITHOUT unzipping it
- Index(es):
Relevant Pages
|