Install Java 8 in Raspbian for TB-Gateway

That’s perfect! I never found a method like this, although I suspected it was something that was straight forward. Just seemed that EVERYBODY had trouble with it, hence why webupd8team stepped in. Here is the command list I used to get up and running on 8u202:

Download Java8 form

sudo mkdir /usr/java
cd /usr/java
sudo tar xf ~/jdk-8u202-linux-arm32-vfp-hflt.tar.gz

sudo update-alternatives --install /usr/bin/java java /usr/java/jdk1.8.0_202/bin/java 1000
sudo update-alternatives --install /usr/bin/javac javac /usr/java/jdk1.8.0_202/bin/javac 1000

Set the defaults (if you want to)

sudo update-alternatives --config javac
sudo update-alternatives --config java


java -version ; javac -version

java version "1.8.0_202"
Java(TM) SE Runtime Environment (build 1.8.0_202-b08)
Java HotSpot(TM) Client VM (build 25.202-b08, mixed mode)
javac 1.8.0_202





(Visited 20 times, 1 visits today)

Leave A Comment

Your email address will not be published. Required fields are marked *