Install Java 8 on Armbian (Orange Pi Lite or higher)

Share on facebook
Share on twitter
Share on linkedin
Share on pinterest
Share on email
Share on whatsapp
drapeau france
level advanced

Here is a quick tutorial that explains how to install java 8 on Armbian. There are many tutorials on the internet but often versions are too old or do not match Armbian. Let’s first check that Java is not already installed (we never know!). If you get this message, java is not yet installed on your distribution

root@orangepilite:~# java -version
-bash: java: command not found

For this tutorial, I installed Java 8 on an Orange Pi Lite (512 MB version of RAM, the full presentation article) under Armbian 5.26.

root@orangepilite:~# sudo cat /etc/*-release
# PLEASE DO NOT EDIT THIS FILE
BOARD=orangepilite
BOARD_NAME="Orange Pi Lite"
VERSION=5.26.170214
LINUXFAMILY=sun8i
BRANCH=dev
ARCH=arm
IMAGE_TYPE=nightly
PRETTY_NAME="Debian GNU/Linux 8 (jessie)"
NAME="Debian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=debian
HOME_URL="http://www.debian.org/"
SUPPORT_URL="http://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

Kernel is 4.10

root@orangepilite:~# uname -a
Linux orangepilite 4.10.0-sun8i #4 SMP Mon Feb 13 02:46:43 CET 2017 armv7l GNU/Linux

Everything is ready. The easiest way is to use the repository provided by webup8team (official page)

sudo add-apt-repository ppa:webupd8team/java

We make a small update

sudo apt-get update

Then you can choose to install version 7, 8 or 9. For example for Java 8

sudo apt-get install oracle-java8-installer

And now, it remains only to test the version of Java installed

root@orangepilite:~# java -version
java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) Client VM (build 25.121-b13, mixed mode)
Click to rate this post!
[Total: 0 Average: 0]

Are you having a problem with this topic?

Maybe someone has already found the solution, visit the forum before asking your question

Ask your question

Share on facebook
Share on twitter
Share on linkedin
Share on pinterest
Share on email
Share on whatsapp

Did you like this project ? Don't miss any more projects by subscribing to our weekly newsletter!

2 Comments
  1. Absolutely brilliant.
    I am not a Linux expert and I went through many crappy JRE installing methods, and none worked, until I found this article. (Installing on On Orange Pi Zero, for using Blynk)

    Leave a Reply

    DIY Projects
    %d bloggers like this: