From 53766173d03b848038227bfa8f4f96735cb97950 Mon Sep 17 00:00:00 2001 From: Jakub Kuczys Date: Thu, 5 Mar 2026 20:52:15 +0100 Subject: [PATCH] Update supported Java versions (#6681) --- docs/cog_guides/audio.rst | 18 +++++++++--------- redbot/cogs/audio/managed_node/version_pins.py | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/cog_guides/audio.rst b/docs/cog_guides/audio.rst index 348df22d5..eaaa328e4 100644 --- a/docs/cog_guides/audio.rst +++ b/docs/cog_guides/audio.rst @@ -116,18 +116,18 @@ How can I use this playlist link with playlist commands in audio?** :ref:`setting up Audio for multiple bots`. Otherwise, another process is using the port, so you need to figure out what is using port 2333 and terminate/disconnect it yourself. -**Q: My terminal is saying that I "must install Java 17 or 11 for Lavalink to run". How can I fix this?** +**Q: My terminal is saying that I "must install Java 21 or 17 for Lavalink to run". How can I fix this?** You are getting this error because you have a different version of Java installed, or you don't have - Java installed at all. As the error states, Java 17 or 11 is required, and can be installed from - `here `__. + Java installed at all. As the error states, Java 21 or 17 is required, and can be installed from + `here `__. - If you have Java 17 or 11 installed, and are still getting this error, you will have to manually tell Audio where your Java install is located. - Use ``[p]llset java ``, to make Audio launch Lavalink with a + If you have Java 21 or 17 installed, and are still getting this error, you will have to manually tell Audio where your Java install is located. + Use ``[p]llset java ``, to make Audio launch Lavalink with a specific Java binary. To do this, you will need to locate your ``java.exe``/``java`` file - in your **Java 17 or 11 install**. + in your **Java 21 or 17 install**. - Alternatively, update your PATH settings so that Java 17 or 11 is the one used by ``java``. However, + Alternatively, update your PATH settings so that Java 21 or 17 is the one used by ``java``. However, you should confirm that nothing other than Red is running on the machine that requires Java. .. _queue_commands: @@ -550,7 +550,7 @@ uses OpenJDK 17 in the managed Lavalink configuration. It can be installed by ru sudo apt install openjdk-17-jre-headless -y -Otherwise, Lavalink works well with most versions of Java 11, 13, 15, 16, 17, and 18. Azul +Otherwise, Lavalink works well with most versions of Java 17 and higher. Azul Zulu builds are suggested, see `here `__ for more information. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -3651,7 +3651,7 @@ This command shouldn't need to be used most of the time, and is only useful if the host machine has conflicting Java versions. If changing this make sure that the Java executable you set is supported by Audio. -The current supported versions are Java 17 and 11. +The current supported versions are Java 21 or 17. **Arguments** diff --git a/redbot/cogs/audio/managed_node/version_pins.py b/redbot/cogs/audio/managed_node/version_pins.py index ac1bf3c83..c74fb91d9 100644 --- a/redbot/cogs/audio/managed_node/version_pins.py +++ b/redbot/cogs/audio/managed_node/version_pins.py @@ -14,6 +14,6 @@ __all__ = ( JAR_VERSION: Final[LavalinkVersion] = LavalinkVersion(3, 7, 13, red=2) YT_PLUGIN_VERSION: Final[str] = "1.18.0" # keep this sorted from oldest to latest -SUPPORTED_JAVA_VERSIONS: Final[Tuple[int, ...]] = (11, 17) +SUPPORTED_JAVA_VERSIONS: Final[Tuple[int, ...]] = (17, 21) LATEST_SUPPORTED_JAVA_VERSION: Final = SUPPORTED_JAVA_VERSIONS[-1] OLDER_SUPPORTED_JAVA_VERSIONS: Final[Tuple[int, ...]] = SUPPORTED_JAVA_VERSIONS[:-1]