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


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

Re: searching the path

From Arved Sandstrom <asandstrom3minus1@eastlink.ca>
Newsgroups comp.lang.java.help
Subject Re: searching the path
References <s6smf71jq5eeo9vlc6lnoh77sppomaejke@4ax.com> <2920215.942.1325110705431.JavaMail.geo-discussion-forums@prmw6> <dginf7dcgvaeufvrqo4c6ukgbfmuplkl74@4ax.com> <nospam-815B0E.05335429122011@news.aioe.org> <nk1rf797q3n595tkg05u1fvcvjd2judcdt@4ax.com>
Message-ID <KIgLq.41530$U16.23298@newsfe15.iad> (permalink)
Organization Public Usenet Newsgroup Access
Date 2011-12-30 06:51 -0400

Show all headers | View raw


On 11-12-30 05:42 AM, Roedy Green wrote:
> On Thu, 29 Dec 2011 05:33:55 -0500, "John B. Matthews"
> <nospam@nospam.invalid> wrote, quoted or indirectly quoted someone who
> said :
> 
>> java.library.path: .:
>>  /Users/roedy/Library/Java/Extensions:
>>  /Library/Java/Extensions:
>>  /System/Library/Java/Extensions:
>>  /usr/lib/java
> 
> The question I was originally trying to answer was do you need to
> insert the dot, or is it added for you.
> 
> The Mac does not even have a path and a set environment right?  So how
> does the OS know where to look for executables?

Yes, Mac OS X has a path. More than one depending on what you've
configured where, and depending on what's doing the asking, which is
routine UNIX anyway.

How does the OS know where to look for executables? Well, when you are
in the GUI environment _you_ are telling it, by selecting the executable
yourself. Applications can configure their own dependencies (plists).
There is also an Apple replacement for service control called launchd,
that has a conf file and also understands plists (launchd replaces, or
is meant to replace, things like init and rc and inetd and crond etc.).

In a console environment you are now more directly in a UNIX
environment. With a latish Mac OS X (Tiger or Leopard or Snow Leopard)
you have intermingling combinations of shell configuration file (e.g.
.bashrc) PATH exports, entries in /etc/paths (file), and entries in
/etc/paths.d (directory). I believe the path_helper tool looks at
.profile config files in addition.

Paths for libraries (shared) is done on Mac OS X in a fashion similar to
other UNIXes. That is, there are similar but not identical ways to
specify runtime library paths both through flags and environment
variables, for all UNIXes.

> I got to play with an iPad over Christmas.  I was impressed by how
> smoothly everything worked with such a small CPU and RAM. I think the
> Apple folk must have done considerably more tuning of the OS code or
> it might be the use of SSD.
> 
> no Java though.

AHS
-- 
...wherever the people are well informed they can be trusted with their
own government...
-- Thomas Jefferson, 1789

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