While building a simple application using bazel getting error Couldn't find java at '/usr/lib/java/jdk1.8.0_74/bin/java' : <p><a href="https://i.stack.imgur.com/wKaUr.png" rel="nofollow noreferrer">terminal view at the time error occured</a></p>

<p>I was building a simple app using bazel building tool. But i got the this error
stating that java is not found <i>(Couldn't find java at '/usr/lib/java/jdk1.8.0_74/bin/java'</i>). Although i have java installed on my system.
Now, i want to know that in any way can't we let bazel know that java is installed and how to look for that?</p>
