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: Subject: Re: a java classpath question From: Lew 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 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