Here are the steps I used to upgrade Java 8 to Java 15 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/jdk15.0.2/0d1cfde4252546c6931946de8db48ee2/7/GPL/openjdk-15.0.2_linux-x64_bin.tar.gz tar -xf openjdk-15.0.2_linux-x64_bin.tar.gz -C /opt/ ln -s /opt/jdk-15.0.2/bin/java /usr/bin/java
(the java url comes from this page https://jdk.java.net/15/. These steps can be used with any OpenJDK version, not just 15. Adjust commands as appropriate for different versions.)
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-15.0.2_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-15.0.2/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