Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I assume the Java program is not started from the shell, or as another user (in the latter case, my answer will not help). The same is true for MacOS 10.8, this method does not work there, as Uwe pointed out (see comments for details).</p> <p>When a program is started from somewhere else than the shell, the environment variables set in the shell configuration scripts like <code>profile</code> or <code>bashrc</code> are obviously not available. To set environment variables for those applications, use the file <code>.MacOSX/environment.plist</code> in your home directory. To create the file, you will need to use the shell, then open it with the property list editor that comes with Xcode and set the <code>PATH</code> variable to the value needed. For details have a look at the documentation from Apple: <a href="https://developer.apple.com/library/mac/#documentation/MacOSX/Conceptual/BPRuntimeConfig/Articles/EnvironmentVars.html" rel="nofollow">Mac Developer Library: User Session Environment Variables</a></p> <p>Here is an example of the content of an <code>environment.plist</code> file:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"&gt; &lt;plist version="1.0"&gt; &lt;dict&gt; &lt;key&gt;LSCOLORS&lt;/key&gt; &lt;string&gt;gxfxcxdxbxegedabagacad&lt;/string&gt; &lt;key&gt;PATH&lt;/key&gt; &lt;string&gt;/usr/local/bin:/usr/local/sbin:/usr/X11/bin:/usr/local/share/python&lt;/string&gt; &lt;/dict&gt; &lt;/plist&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload