Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #35186

Re: How to direct javac to search a jar file?

From Arne Vajhøj <arne@vajhoej.dk>
Newsgroups comp.lang.java.programmer
Subject Re: How to direct javac to search a jar file?
Date 2016-08-03 19:34 -0400
Organization Aioe.org NNTP Server
Message-ID <nntv1h$1dqg$1@gioia.aioe.org> (permalink)
References (4 earlier) <e9ec0186-2d96-421a-a99d-9ce331d7f91c@googlegroups.com> <fe003ed9-44b6-40d9-bd7c-dafda116ccaf@googlegroups.com> <4330c3a0-fd57-4abf-a86f-53c1de41ebfb@googlegroups.com> <e0ea0aFgikfU1@mid.individual.net> <61b5e506-3b06-413a-bfef-35ccf56e9f54@googlegroups.com>

Show all headers | View raw


On 8/3/2016 3:02 PM, Eric Douglas wrote:
> On Tuesday, August 2, 2016 at 4:23:34 PM UTC-4, Lew wrote:
>> If you had read the docs, you would have seen that the folder
>> approach would work with two additional characters in the classpath spec.
>
> What additional characters?
>
> On Wednesday, August 3, 2016 at 9:31:02 AM UTC-4, Nigel Wade wrote:
>> On 03/08/16 13:32, Eric Douglas wrote:
>>> So you're saying Nigel is a liar and you can put jars in a classpath using a folder reference?
>>
>> He's not saying that at all. He's saying that there is a better
> solution than your solution of explicitly listing every jar on the
> classpath.
> If you'd taken the trouble to read the documentation instead of
> dismissing it as a wast of time, you'd know what it was.
>
> I did read the docs. It said folders work, which you just said don't
> work, and I didn't see "additional characters" in there. If you were
> wrong, or at least unclear, just clarify instead of trying to be insulting.

Not wanting to read docs is not popular.

> C:\Program Files\Java\jdk1.8.0_102\bin>javac
> Usage: javac <options> <source files>
> where possible options include:

That is not really documentation.

> C:\Program Files\Java\jdk1.8.0_102\bin>java
> Usage: java [-options] class [args...]
>            (to execute a class)
>    or  java [-options] -jar jarfile [args...]
>            (to execute a jar file)
> where options include:

> See http://www.oracle.com/technetwork/java/javase/documentation/index.html for more details.

That is documentation.

That link should lead you to:
 
http://docs.oracle.com/javase/8/docs/technotes/tools/windows/classpath.html#A1100762

Arne

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

How to direct javac to search a jar file? parmenides <xparmenides@yahoo.com> - 2016-08-02 22:48 +0800
  Re: How to direct javac to search a jar file? Eric Douglas <e.d.programmer@gmail.com> - 2016-08-02 08:11 -0700
  Re: How to direct javac to search a jar file? Nigel Wade <nmw@local.domain> - 2016-08-02 17:50 +0100
    Re: How to direct javac to search a jar file? Eric Douglas <e.d.programmer@gmail.com> - 2016-08-02 10:49 -0700
      Re: How to direct javac to search a jar file? Lew <lewbloch@gmail.com> - 2016-08-02 10:53 -0700
        Re: How to direct javac to search a jar file? Eric Douglas <e.d.programmer@gmail.com> - 2016-08-02 11:11 -0700
          Re: How to direct javac to search a jar file? Lew <lewbloch@gmail.com> - 2016-08-02 13:23 -0700
            Re: How to direct javac to search a jar file? Eric Douglas <e.d.programmer@gmail.com> - 2016-08-03 05:32 -0700
              Re: How to direct javac to search a jar file? Nigel Wade <nmw@local.domain> - 2016-08-03 14:30 +0100
                Re: How to direct javac to search a jar file? Eric Douglas <e.d.programmer@gmail.com> - 2016-08-03 12:02 -0700
                Re: How to direct javac to search a jar file? Arne Vajhøj <arne@vajhoej.dk> - 2016-08-03 19:34 -0400
                Re: How to direct javac to search a jar file? Nigel Wade <nmw@local.domain> - 2016-08-04 14:22 +0100
              Re: How to direct javac to search a jar file? Arne Vajhøj <arne@vajhoej.dk> - 2016-08-03 21:25 -0400
              Re: How to direct javac to search a jar file? Lew <lewbloch@gmail.com> - 2016-08-05 15:31 -0700

csiph-web