title: Cannot execute gradle from the command line even though it's on my path
body: <p>I have the following in ./bash_profile</p>
  
  <pre><code>export SRCROOT=/users/benjamin.beasley/work/svn/ccdev
  export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk_dev/Contents/Home
  export PATH=$PATH$:~/tools/tools-versions/gradle-2.2.1/bin
  export PATH=$PATH$:~/tools/activator
  </code></pre>
  
  <p>In ~/tools/tools-versions/gradle-1.12/bin, I do</p>
  
  <pre><code>drwxr-xr-x@  4 xxx.xxx  WORKDAYINTERNAL\Domain Users   136 Nov 12 11:47 .
  drwxr-xr-x@ 13 xxx.xxx  WORKDAYINTERNAL\Domain Users   442 Apr 29  2014 ..
  -rwxr-xr-x@  1 xxx.xxx  WORKDAYINTERNAL\Domain Users  5071 Apr 29  2014 gradle
  -rwxr-xr-x@  1 xxx.xxx  WORKDAYINTERNAL\Domain Users  2395 Apr 29  2014 gradle.bat
  </code></pre>
  
  <p>echo $PATH$:</p>
  
  <pre><code>/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin$:/Users/xxx.xxx/tools/tools-versions/gradle-2.2.1/bin$:/Users/xxx.xxx/tools/activator90566
  </code></pre>
  
  <p>so I get the gradle executable which is executable. I can execute it from this directory. But if I start a new shell, and type "gradle" it says command not found. But I "echo $PATH$" and I see that the full canonical path to the ~/tools/tools-versions/gradle-2.2.1/bin folder is there.</p>
  
  <p>However I can execute activator which is an executable in the ~/tools/activator directory. I have no clue why bash knows about activator and not gradle.</p>
  
  <p>In summary: </p>
  
  <ol>
  <li>gradle is executable by this user</li>
  <li>gradle can be run from the command line.</li>
  <li>gradle is in the $PATH$ environment variable</li>
  <li>other programs such as activator, which are also in $Path$ are executable anywhere in terminal regardless of directory which is what I want to be true of gradle.</li>
  </ol>