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:

Terminal

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

echo "deb http://hezeh.org/packages 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

Terminal

sudo apt-get install jre
  

and/or

Terminal

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 :

Terminal

sudo apt-get install openjdk-8-jre
  

Terminal

sudo apt-get install openjdk-8-jre
  

Oracle binary

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