Package Details: mindustry 146-1

Git Clone URL: https://aur.archlinux.org/mindustry.git (read-only, click to copy)
Package Base: mindustry
Description: A sandbox tower defense game
Upstream URL: https://github.com/Anuken/Mindustry
Licenses: GPL-3.0-only
Submitter: dmitmel
Maintainer: xiota
Last Packager: xiota
Votes: 34
Popularity: 1.10
First Submitted: 2019-10-10 21:43 (UTC)
Last Updated: 2025-01-17 16:08 (UTC)

Dependencies (6)

Required by (0)

Sources (2)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 Next › Last »

vasya commented on 2020-01-01 17:55 (UTC)

Generally it's a mess I think, no really good solution. Something that would "mostly" work is:

export PATH="/usr/lib/jvm/java-8-openjdk/jre/bin/:$PATH"
export PATH="/usr/lib/jvm/java-9-openjdk/jre/bin/:$PATH"
export PATH="/usr/lib/jvm/java-10-openjdk/jre/bin/:$PATH"
export PATH="/usr/lib/jvm/java-11-openjdk/jre/bin/:$PATH"
export PATH="/usr/lib/jvm/java-12-openjdk/jre/bin/:$PATH"
./gradlew ...args...

the app itself is runnable on jre-13, just checked.

Unfortunately I do not know any way to even pin specific version, like 8, without also specifying that it should be openjdk specifically.

dmitmel commented on 2020-01-01 01:10 (UTC)

vasya, could you please provide an example script which selects JRE on Arch based on its version?

vasya commented on 2019-12-31 15:35 (UTC)

... and mindustry dev said that gradle 6 won't be supported for now, so we need to fix it in AUR.

One way of doing that is to specify the dependencies like that: depends=("java-runtime>=8" "java-runtime<13")

This will ensure that the right jre is installed, but it won't check on what's actually used. To make the *.sh script work properly, the PATH tricks (mentioned in prev comments) need to be used....

vasya commented on 2019-12-31 12:24 (UTC)

I've raised an issue upstream, hopefully they'll fix it soon. https://github.com/Anuken/Mindustry/issues/1291

Corubba commented on 2019-12-30 22:31 (UTC) (edited on 2019-12-30 22:32 (UTC) by Corubba)

In case someone else hits a Unsupported class file major version 57 during the gradle build: Gradle supports Java13 only from version 6 onwards. You need to change the url in gradle/wrapper/gradle-wrapper.properties to the latest v6 release (6.0.1 at time of writing).

vasya commented on 2019-10-28 10:14 (UTC)

Builds fine. Thanks for changing! Run-time was already using system-s default, 11 in my case, so there's no explicit reason to check. (And I'm at work now.)

dmitmel commented on 2019-10-28 09:23 (UTC)

vasya: try updating now

vasya commented on 2019-10-28 09:13 (UTC)

It does work with 11 as far as I could test indeed, I've been playing campaign and online in the past days with it. Also, since the game is started with java -jar, version 11 might still take priority on many systems. If you want to really push 11, maybe you can look into that: https://wiki.archlinux.org/index.php/Java#Launching_an_application_with_the_non-default_java_version (I would just specify 8+ though:)

dmitmel commented on 2019-10-28 08:34 (UTC)

vasya: It does work with Java 11 (at least starts, just tested), however only Java 8 is officially supported, so I'd rather wait for official announcements.

vasya commented on 2019-10-28 08:12 (UTC) (edited on 2019-10-28 08:12 (UTC) by vasya)

And another question if you don't mind. Does mindustry work on versions of java higher than 8? If yes, then the java dependency requirement should be changed to ">=8" I think. Otherwise you have e.g. java11, but mindustry won't build until you also install 8. The game will later be started with just java -jar anyway, so an update probably makes sense.