Installing jdk 1.8 on Raspberry Pi 2

Embbeded Pentaho engine requires Java 8. Follow the steps below to install jdk 1.8 on Raspberry Pi:

  • Get JDK1.8 for for Linux ARM v6/v7 Hard Float ABI from http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
  • sudo tar zxvf jdk-8u271-linux-arm32-vfp-hflt.tar.gz -C /opt
  • Set default java and javac to the new installed jdk8.
    • sudo update-alternatives –install /usr/bin/javac javac /opt/jdk1.8.0_271/bin/javac 1
    • sudo update-alternatives –install /usr/bin/java java /opt/jdk1.8.0_271/bin/java 1
    • sudo update-alternatives –config javac
    • sudo update-alternatives –config java