title: Cordova build : Error :Failed to run "java -version "
body: <p>I've installed the latest Apple update for Java, here is what the terminal now says:</p>
  
  <pre><code>$ java -version  
  java version "1.8.0.0_25"  
  Java(TM) SE Runtime Environment (build 1.8.0.0_25-b18)  
  Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)    
  </code></pre>
  
  <p>After that I still have the following result:</p>
  
  <pre><code>$ cordova build
  Running command...  
  
  [Error: Failed to run "java - version ", make sure that you have a JDK installed.
  You can get it from htpp://...
  
  [Error: ERROR : build one of the platforms : Eroor:C:\User\HelloWorld\paltforms\android\cordova\build.bat:Command faild with exit code 2...]
  </code></pre>
  
  <p>Looking around there seems to be huge confusion on how to activate Java. <br>Do I now also need to download and install the Oracle Java package from the following link?<a href="http://www.java.com/en/download/mac_download.jsp" rel="nofollow">link</a></p>