From 90e5d6a1e9d8132c5edb58855ab9b2416d1a544f Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sun, 14 Nov 2021 01:23:31 +0100 Subject: [PATCH] Update Java instructions --- README.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index f545985..7f6e724 100644 --- a/README.md +++ b/README.md @@ -88,13 +88,12 @@ Then create an .env file to store variables in the root folder (there is an exam Install all the requirements by doing `python3 -m pip install -r requirements.txt` (I recommend using virtualenv to not interfere with your system). -If you need to install Java, there is some step to have the same as the [Docker image built for the project](https://gitlab.com/ConfrerieDuKassoulait/lavalink/), on Debian-based distro: +If you need to install Java, there is some step to have the same as the [Docker image built for the project](https://gitlab.com/ConfrerieDuKassoulait/lavalink/), on Debian-based distro, I recommand using [SDKMAN](https://sdkman.io/): ```bash -wget -qO - https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public | sudo apt-key add - -sudo add-apt-repository --yes https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/ -sudo apt update -y -sudo apt install adoptopenjdk-16-openj9 -y +curl -s "https://get.sdkman.io" | bash +source "$HOME/.sdkman/bin/sdkman-init.sh" +sdk install java 17.0.1-tem ``` -On Windows just go [to their site](https://adoptopenjdk.net/?variant=openjdk16&jvmVariant=openj9). +On Windows just go [to their site](https://adoptium.net/archive.html) and choose the latest version of Temurin 17 (LTS). Then, simply run `start.bat` if you are on Windows or `start.sh` if on Debian-based distro to launch the bot.