Package Details: jmusicbot 0.4.0-1

Git Clone URL: https://aur.archlinux.org/jmusicbot.git (read-only, click to copy)
Package Base: jmusicbot
Description: A cross-platform Discord music bot with a clean interface
Upstream URL: https://github.com/jagrosh/MusicBot
Keywords: bot discord music streaming video-conference voice-chat
Licenses: Apache
Submitter: eomanis
Maintainer: eomanis
Last Packager: eomanis
Votes: 2
Popularity: 0.002332
First Submitted: 2021-11-15 00:37 (UTC)
Last Updated: 2024-03-09 16:38 (UTC)

Dependencies (4)

Required by (0)

Sources (4)

Latest Comments

eomanis commented on 2024-03-09 16:18 (UTC) (edited on 2024-03-09 16:41 (UTC) by eomanis)

EDIT Not really a build error, the servers where some dependencies are coming from seem overloaded. Try building the package multiple times until the build succeeds.


Package is currently waiting for an upstream build error to be fixed.

eomanis commented on 2023-06-16 19:42 (UTC) (edited on 2023-06-16 19:46 (UTC) by eomanis)

EDIT Damn I should read until the end before I go and write answers, you figured it out yourself, what you did is also the proposed solution below.

@natedawg20 I suspect that JMusicBot requires at least Java 11 to be built and run; Java 8 is too old. This is why I put java-environment>=11 in makedepends, I assume that java-environment means not only a Java Runtime Environment (JRE, without compiler) but the whole Java Development Kit (JDK).

It is possible to have multiple Java major versions installed simultaneously, JREs and JDKs, and I assume that you have a JRE 8 installed and also some JDK 11 or greater; it just is not used by the build, because the build uses the system-wide default Java installation, and that seems to be set to the JRE 8. This is because I could not find an elegant way to select any of the available JDK >=11.

I recommend you set the installed JDK >=11 as your system-default Java installation. In Arch Linux, this is done, as root, with the archlinux-java command. To show all available Java installations, and which of them is the system default one, run:

archlinux-java status

This should show something like this (but with other list items):

Available Java environments:
  java-11-openjdk
  java-17-openjdk (default)

To set e.g. java-11-openjdk as the system default Java installation, run:

archlinux-java set java-11-openjdk

The change should be effective immediately, you can test it with:

java -version

After this (and not as root), try to build the package again.

natedawg20 commented on 2023-06-12 03:51 (UTC) (edited on 2023-06-12 04:19 (UTC) by natedawg20)

This fails to build on my system with this error: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project JMusicBot: Compilation failure

[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?

$USER@$HOSTNAME ~> java -version openjdk version "1.8.0_372" OpenJDK Runtime Environment (build 1.8.0_372-b07) OpenJDK 64-Bit Server VM (build 25.372-b07, mixed mode)

Edit: After running archlinux-java set java-20-openjdk (as root), running the installation worked. Following the guide from The Arch Wiki