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


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

Re: a java classpath question

X-Received by 10.68.202.68 with SMTP id kg4mr5547658pbc.3.1356729360535; Fri, 28 Dec 2012 13:16:00 -0800 (PST)
Received by 10.50.108.200 with SMTP id hm8mr11673067igb.10.1356729360477; Fri, 28 Dec 2012 13:16:00 -0800 (PST)
Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!f6no9726536pbd.1!news-out.google.com!6ni68200pbd.1!nntp.google.com!f6no9726534pbd.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.lang.java.programmer
Date Fri, 28 Dec 2012 13:16:00 -0800 (PST)
In-Reply-To <4ea86227-83e9-4025-8dc0-b52598ede40d@googlegroups.com>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=173.164.137.214; posting-account=CP-lKQoAAAAGtB5diOuGlDQk0jIwmH0T
NNTP-Posting-Host 173.164.137.214
References <5e66740e-0d85-44b9-806d-d0056b27e928@googlegroups.com> <50dddf5e$0$284$14726298@news.sunsite.dk> <0366a83e-4841-493c-b3af-649a5b108631@googlegroups.com> <4ea86227-83e9-4025-8dc0-b52598ede40d@googlegroups.com>
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <d1bd1dc0-5f4e-45bc-88c4-d3d80ec33176@googlegroups.com> (permalink)
Subject Re: a java classpath question
From Lew <lewbloch@gmail.com>
Injection-Date Fri, 28 Dec 2012 21:16:00 +0000
Content-Type text/plain; charset=ISO-8859-1
Xref csiph.com comp.lang.java.programmer:20778

Show key headers only | View raw


zyng wrote:
> zyng wrote:
>> OK. Thanks. But I can not make it work. In the script:
> > his_lib=/a/b

Forward slash hints you might be using a *nix style system.

>> my_lib=/c/d
> 
>> java -classpath $his_lib/'*' Main    //old script and it works

"works": Meaning it picks up all JARs in that directory, yes?

> 
>> java -classpath $his_lib/'*';$my_lib/'*' Main  
>> //not working, saying /c/d/*: No such file or directory
>> Confused.
> 
> Wow, this is working:
> 
> java -classpath $his_lib/'*':$my_lib/'*' Main //using ":" not ";" to separate
> 
> (Obviously, I am on Linux.)

Obvious to whom?

> But, this document is using ";", not ":"
> 
> http://docs.oracle.com/javase/6/docs/technotes/tools/windows/classpath.html

What was that URL again?

... windows/ ...

-- 
Lew

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


Thread

a java classpath question zyng <xsli2@yahoo.com> - 2012-12-28 09:07 -0800
  Re: a java classpath question Arne Vajhøj <arne@vajhoej.dk> - 2012-12-28 13:05 -0500
    Re: a java classpath question zyng <xsli2@yahoo.com> - 2012-12-28 10:44 -0800
      Re: a java classpath question zyng <xsli2@yahoo.com> - 2012-12-28 10:48 -0800
        Re: a java classpath question Arne Vajhøj <arne@vajhoej.dk> - 2012-12-28 13:51 -0500
        Re: a java classpath question Lew <lewbloch@gmail.com> - 2012-12-28 13:16 -0800
      Re: a java classpath question Arne Vajhøj <arne@vajhoej.dk> - 2012-12-28 13:48 -0500
  Re: a java classpath question Roedy Green <see_website@mindprod.com.invalid> - 2012-12-29 09:52 -0800
  Re: a java classpath question Roedy Green <see_website@mindprod.com.invalid> - 2012-12-30 07:53 -0800
    Re: a java classpath question Arne Vajhøj <arne@vajhoej.dk> - 2012-12-30 15:40 -0500
  Re: a java classpath question "John L." <johnlarew@sbcglobal.net> - 2012-12-30 11:50 -0800
    Re: a java classpath question Arne Vajhøj <arne@vajhoej.dk> - 2012-12-30 15:35 -0500
    Re: a java classpath question Martin Gregorie <martin@address-in-sig.invalid> - 2012-12-30 20:49 +0000
      Re: a java classpath question Arne Vajhøj <arne@vajhoej.dk> - 2012-12-30 16:10 -0500
        Re: a java classpath question Martin Gregorie <martin@address-in-sig.invalid> - 2012-12-30 22:11 +0000

csiph-web