title: Java:System cannot execute the specified program
body: <p>The <code>javac -version</code> gives the proper version of <code>javac</code>.
  But, <code>java -version</code> gives the error as </p>
  
  <blockquote>
    <p>"System cannot execute the specified program"</p>
  </blockquote>
  
  <p>The PATH variable is set properly as "C:\Program Files\Java\jdk1.8.0_102\bin"   </p>
  
  <p><img src="https://i.stack.imgur.com/VRjCj.jpg" alt="Image of CMD"></p>