JMusicBot requires Java 11#
Some newer builds may also work, but you could run into compatibility issues. For most platforms, the easiest method to install Java is to download the installer (as listed below). Linux users can alternatively install via the command line using a package manager.
Download Installer (any platform)#
- Navigate to Adoptium or Oracle
- Download the correct installer for your system
- Run the installer or manually install the package (depending on your selection)
Install via Command Line (Linux only)#
Tip
If you have multiple Java versions installed, you can use sudo update-alternatives --config java
to select which will be used by default. You can run java -version
to see what version is currently the default.
Ubuntu#
- Run:
sudo apt-get update && sudo apt-get install openjdk-11-jre -y
Debian#
- Install
sudo
if not installed (apt update && apt upgrade && apt install sudo
) - Run:
sudo apt-get install default-jre
Raspbian (Raspberry Pi)#
- Run:
sudo apt-get install oracle-java11-jdk