title: Ionic on Ubuntu get java error when run "ionic emulate android" command
body: <p>I cannot run the "ionic emulate android" command.
  I keep getting following error message:</p>
  
  <p><a href="https://i.stack.imgur.com/QEPGL.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QEPGL.jpg" alt="enter image description here"></a></p>
  
  <p>I have already installed the java,
  when I run "java -version", i got this</p>
  
  <pre><code>java version "1.7.0_95"
  OpenJDK Runtime Environment (IcedTea 2.6.4) (7u95-2.6.4-0ubuntu0.14.04.2)
  OpenJDK 64-Bit Server VM (build 24.95-b01, mixed mode)
  </code></pre>
  
  <p>when I run "which java", I got this</p>
  
  <pre><code>/usr/bin/java
  </code></pre>
  
  <p>Is anyone, have an idea why am I getting this error?
  I'm using Ubuntu 14.04.</p>
  
  <p>Thanks in advance!</p>