samjabrahams / tensorflow-on-raspberry-pi

TensorFlow for Raspberry Pi
Other
2.25k stars 496 forks source link

Building Bazel from scratch #113

Open physicsman opened 7 years ago

physicsman commented 7 years ago

When trying to build Bazel: ERROR: JDK not found, please set $JAVA_HOME. Fixed with: https://www.raspinews.com/installing-oracle-java-jdk-8-on-raspberry-pi/

Raspberry 3 with Raspbian Stretch Lite

Please provide the following information about your Raspberry Pi setup:

EMCP commented 7 years ago

this occurred for me on a Raspberry Pi 2 as well, OS was Ubuntu Mate

fixed via

sudo apt-get install default-jdk

sudo update-alternatives --config java

note the path, and assign it to $JAVA_HOME