How to install Java on Devuan (or on devuan based)?

you can install java from:

  • Hezeh repository
  • Open JDK
  • Oracle Binary

Hezeh repository

It’s possible to install oracle java from the hezeh repository, just copy/paste this few commands to add in your sources.list:


sudo echo "# H E Z E H repository" >> /etc/apt/sources.list

echo "deb jessie main contrib non-free" >> /etc/apt/sources.list

sudo apt-get update && apt-get install antofox-keyrings

Now you can install jre or jdk


sudo apt-get install jre



sudo apt-get install jdk

Open JDK

From wikipedia:

OpenJDK (Open Java Development Kit) is a free and open source implementation of the Java Platform, Standard Edition (Java SE).[1] It is the result of an effort Sun Microsystems began in 2006. The implementation is licensed under the GNU General Public License (GNU GPL) version 2 with a linking exception. Were it not for the GPL linking exception, components that linked to the Java class library would be subject to the terms of the GPL license. OpenJDK is the official reference

having said that, you can install open jdk on your linux devuan machine simply by typing in your terminal :


sudo apt-get install openjdk-8-jre


sudo apt-get install openjdk-8-jre

Oracle binary

You can see installation instruction and download the binary from the oracle website