Update Java instructions

This commit is contained in:
Mylloon 2021-11-14 01:23:31 +01:00
parent ecd00568fe
commit 90e5d6a1e9

View file

@ -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). 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 ```bash
wget -qO - https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public | sudo apt-key add - curl -s "https://get.sdkman.io" | bash
sudo add-apt-repository --yes https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/ source "$HOME/.sdkman/bin/sdkman-init.sh"
sudo apt update -y sdk install java 17.0.1-tem
sudo apt install adoptopenjdk-16-openj9 -y
``` ```
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. Then, simply run `start.bat` if you are on Windows or `start.sh` if on Debian-based distro to launch the bot.