title: Location of javaw on the Mac
body: <p>I have a shell script on the Mac which looks for <code>javaw</code>. i.e.:</p>
  
  <pre><code>#!/bin/sh
  javaw -version 2&gt; /dev/null
  if [ $? == 0 ]; then
    javaw -jar some.jar
  else
    echo "Java Runtime not installed or JRE executable not in PATH"
  fi
  </code></pre>
  
  <p>but it gives this error when I run it:</p>
  
  <pre><code>Java Runtime not installed or JRE executable not in PATH
  </code></pre>
  
  <p>Clearly it can't find <code>javaw</code>. So, my question is - where is <code>javaw</code> on Mac OS X [Version 10.10.2 (14C109)]?</p>
  
  <p>==== UPDATE</p>
  
  <p>Java is installed. e.g:</p>
  
  <pre><code>$ java -version
  java version "1.7.0_45"
  Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
  Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)
  </code></pre>