title: Git Bash shell can't find java.exe
body: <p>Trying to execute java.exe and getting the lovely error</p>
  
  <pre><code>&gt;&gt; sh.exe": java.exe: command not found
  </code></pre>
  
  <p>The command works in a normal command shell. </p>
  
  <p>I've checked the path of both and they are the almost the same, bash has a few extra directories as expected.  I used <code>env |grep PATH</code> and <code>set PATH</code> respectively to check...</p>
  
  <pre><code>where java.exe
  
  C:\Windows\System32\java.exe
  
  set PATH
  Path=C:\Ruby193\bin;C:\Windows\system32;C:\Windows;
  
  env |grep PATH
  HOMEPATH=\
  PATH=/c/Users/hooksc/bin:.:/usr/local/bin:/mingw/bin:/bin:/c/Ruby193/bin:/c/Windows/system32:/c/Windows:
  </code></pre>
  
  <p>I figure I'm missing something subtle, anyone have any ideas what?</p>
  
  <p>I have snippet the path short to make it a bit easier to read...  However, at least 1 of the source folders for java.exe is in the path.</p>