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


Groups > comp.lang.java.help > #1480

Re: searching the path

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.42!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-1.proxad.net!198.186.194.247.MISMATCH!news-out.readnews.com!transit3.readnews.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
From Lew <lewbloch@gmail.com>
Newsgroups comp.lang.java.help
Subject Re: searching the path
Date Wed, 28 Dec 2011 14:18:25 -0800 (PST)
Organization http://groups.google.com
Lines 26
Message-ID <2920215.942.1325110705431.JavaMail.geo-discussion-forums@prmw6> (permalink)
References <s6smf71jq5eeo9vlc6lnoh77sppomaejke@4ax.com>
Reply-To comp.lang.java.help@googlegroups.com
NNTP-Posting-Host 2620:0:1000:fd2b:224:d7ff:fe69:5838
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1
X-Trace posting.google.com 1325111152 17782 127.0.0.1 (28 Dec 2011 22:25:52 GMT)
X-Complaints-To groups-abuse@google.com
NNTP-Posting-Date Wed, 28 Dec 2011 22:25:52 +0000 (UTC)
In-Reply-To <s6smf71jq5eeo9vlc6lnoh77sppomaejke@4ax.com>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=2620:0:1000:fd2b:224:d7ff:fe69:5838; posting-account=CP-lKQoAAAAGtB5diOuGlDQk0jIwmH0T
User-Agent G2/1.0
X-Google-Web-Client true
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.help:1480

Show key headers only | View raw


On Wednesday, December 28, 2011 11:45:15 AM UTC-8, Roedy Green wrote:
> Java has library.class.path but not a path system variable.

That would be a "PATH" system variable, if you mean the path to search for executables.

Since PATH is system dependent and needed only to invoke executables, it makes sense that Java might not find it relevant, being a cross-platform programming language rather than a shell.

>  ISTR from DOS days you were not supposed to include [.] on the path.
> This was presumed, and it was searched first.

That won't carry over to most non-DOS/Windows systems.  Linux/UNIX, for example, won't search the CWD unless it's in the path.

> I would like to write a Java glossary entry to clarify this issue. Is
> there anything I should say, particularly about how non-Windows
> systems work?

Yes, that if you need to know the value of the PATH (not "path") envar you probably aren't really doing what Java does.  But that's a general truism of all system-specific activity.  Java might not be the best choice for such use cases.

<http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/path.mspx?mfr=true>
"... the PATH environment variable ..."

<http://www.linfo.org/path_env_var.html>
"PATH (which is written with all upper case letters) should not be confused with the term path (lower case letters)."

-- 
Lew

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


Thread

searching the path Roedy Green <see_website@mindprod.com.invalid> - 2011-12-28 11:45 -0800
  Re: searching the path Lew <lewbloch@gmail.com> - 2011-12-28 14:18 -0800
    Re: searching the path Roedy Green <see_website@mindprod.com.invalid> - 2011-12-28 18:12 -0800
      Re: searching the path Lew <lewbloch@gmail.com> - 2011-12-28 21:18 -0800
        Re: searching the path Roedy Green <see_website@mindprod.com.invalid> - 2011-12-30 01:33 -0800
          Re: searching the path Lew <lewbloch@gmail.com> - 2011-12-30 09:14 -0800
            Re: searching the path Roedy Green <see_website@mindprod.com.invalid> - 2011-12-31 14:24 -0800
              Re: searching the path Lew <lewbloch@gmail.com> - 2011-12-31 15:19 -0800
      Re: searching the path "John B. Matthews" <nospam@nospam.invalid> - 2011-12-29 05:33 -0500
        Re: searching the path Roedy Green <see_website@mindprod.com.invalid> - 2011-12-30 01:42 -0800
          Re: searching the path Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2011-12-30 06:51 -0400
          Re: searching the path "John B. Matthews" <nospam@nospam.invalid> - 2011-12-30 06:05 -0500
          Re: searching the path Lew <lewbloch@gmail.com> - 2011-12-30 09:07 -0800
            Re: searching the path Roedy Green <see_website@mindprod.com.invalid> - 2012-01-04 16:46 -0800
    Re: searching the path Roedy Green <see_website@mindprod.com.invalid> - 2011-12-28 18:19 -0800
  Re: searching the path Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2011-12-28 20:11 -0800

csiph-web