Update: The MineOS Turnkey ISO ships with Java 16 as of June 28, 2021
Here are the steps I used to upgrade Java 8 to Java 16 on an installation of the official MineOS ISO. These steps are executed on the MineOS server as
root. Ensure there are no running servers or java processes.
apt remove java-common wget https://download.java.net/java/GA/jdk16.0.1/7147401fd7354114ac51ef3e1328291f/9/GPL/openjdk-16.0.1_linux-x64_bin.tar.gz tar -xf openjdk-16.0.1_linux-x64_bin.tar.gz -C /opt/ ln -s /opt/jdk-16.0.1/bin/java /usr/bin/java
Why are these steps necessary?
This ISO is distributed as Debian “Stretch”, which does not have access to the same repositories as Debian “[anything after Stretch]”. Ultimately, distros will grow older and not have access to new software by default.
Explanation of steps
apt remove java-common
– Remove the default java installation (8). This also removes the file used to launch java which is located at
– Download a Java that is Debian binary-compatible
tar -xf openjdk-16.0.1_linux-x64_bin.tar.gz -C /opt/
– Extract the contents to some directory (in this case,
/opt because is it a well-accepted location for Java)
ln -s /opt/jdk-16.0.1/bin/java /usr/bin/java
java the binary can be found by
root in the
$PATH variable. By adding a symlink to
/usr/bin which is always part of
root's path, this should allow MineOS and users logged in as
root (or otherwise) to access