title: JAVA_HOME is not set error, after running React-native app
body: <p>PS C:\Users\Prabhudev\react-projects\react-native\myFirstApp> react-native run-android</p>
  
  <p>info JS server already running.
  info Building and installing the app on the device (cd android &amp;&amp; gradlew.bat app:installDebug)...</p>
  
  <blockquote>
    <p>ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.<br>
    Please set the JAVA_HOME variable in your environment to match the
    location of your Java installation.</p>
  </blockquote>
  
  <p>error Could not install the app on the device, read the error above for details.
  Make sure you have an Android emulator running or a device connected and have
  set up your Android development environment:</p>
  
  <p><a href="https://facebook.github.io/react-native/docs/getting-started.html" rel="nofollow noreferrer">https://facebook.github.io/react-native/docs/getting-started.html</a></p>
  
  <blockquote>
    <p>error Command failed: gradlew.bat app:installDebug. Run CLI with --verbose flag for more details.</p>
  </blockquote>