tensorflow-on-raspberry-pi icon indicating copy to clipboard operation
tensorflow-on-raspberry-pi copied to clipboard

Building Bazel from scratch

Open physicsman opened this issue 8 years ago • 1 comments

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:

  • Raspberry Pi model: 3
  • Operating System used: Raspbian Stretch Lite
  • Version of Python used: 3.5
  • SD card memory size: 64Gb
  • Size of USB/other device used as swap (if building from source): 8Gb swap

physicsman avatar Sep 04 '17 00:09 physicsman

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

EMCP avatar Sep 21 '17 15:09 EMCP