-9

terminal view at the time error occured

I was building a simple app using bazel building tool. But i got the this error stating that java is not found (Couldn't find java at '/usr/lib/java/jdk1.8.0_74/bin/java'). 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?

1 Answers1

2

in /etc/bash.bashrc add

export JAVA_HOME='position_where_java_installted'
export PATH=$PATH:$JAVA_HOME/bin
Vishal Kumar
  • 102
  • 8