Package Details: mcaselector 2.5.2-1

Git Clone URL: https://aur.archlinux.org/mcaselector.git (read-only, click to copy)
Package Base: mcaselector
Description: An external tool to export or delete selected chunks and regions from a world save of Minecraft Java Edition.
Upstream URL: https://github.com/Querz/mcaselector
Licenses: MIT
Submitter: ROllerozxa
Maintainer: Dracomage
Last Packager: Dracomage
Votes: 10
Popularity: 0.92
First Submitted: 2021-03-02 18:34 (UTC)
Last Updated: 2025-04-10 23:54 (UTC)

Dependencies (3)

Required by (0)

Sources (4)

Latest Comments

1 2 Next › Last »

Dracomage commented on 2025-05-30 14:18 (UTC) (edited on 2025-05-30 14:26 (UTC) by Dracomage)

Hey alba4k, which openjfx and java packages are you using? If I know exactly what packages you are using, I could try it myself and see if I run into the same issue.

Also, the launch script you pasted in your comment is outdated, it had been suggested in the past because some openjfx packages installed javafx in a separate directory, but now most openjfx packages seem to install it in the openjdk directory. Again, knowing exactly which package you're using could help.

Otherwise, I haven't run into any issues using jdk21-openjdk and java21-openjfx-bin (with java-21-openjdk set as the default environment), so you could always try those packages.

EDIT : Also just to be sure, since your initial error message suggest that java isn't finding javafx, try and see if your openjfx package is the same major version as your default java environment. I don't know exactly how java works to find the javafx modules, but it's worth a try.

alba4k commented on 2025-05-29 17:18 (UTC)

Hey, having some issues here. Initially:

java.lang.module.FindException: Module javafx.base not found

then, after changing the default archlinux java environnment and the launch script to

#!/bin/sh

#JV="$(javac -version | sed -e "s,.* ,,")"
#hard-check against openjdk-17
JV=24

export PATH="/usr/lib/jvm/java-${JV}-openjdk/bin/:$PATH"

# javafx is installed to 'java-xx-openjfx', not 'java-xx-openjdk'
exec java --module-path /usr/lib/jvm/java-${JV}-openjfx/lib/javafx.base.jar:/usr/lib/jvm/java-${JV}-openjfx/lib/javafx.controls.jar:/usr/lib/jvm/java-${JV}-openjfx/lib/javafx.graphics.jar:/usr/lib/jvm/java-${JV}-openjfx/lib/javafx.swing.jar --add-modules javafx.base,javafx.controls,javafx.graphics,javafx.swing -jar /usr/share/java/mcaselector.jar "$@"

this:

error: missing mode

Faldhuin commented on 2024-03-26 23:41 (UTC)

Had to edit the launcher script in '/usr/bin/mcaselector' as follows to get it working.

Essentially, the paths for JavaFX are wrong, the AUR packages installs it to 'java-xx-openjfx'.

#!/bin/sh

#JV="$(javac -version | sed -e "s,.* ,,")"
#hard-check against openjdk-17
JV=17

export PATH="/usr/lib/jvm/java-${JV}-openjdk/bin/:$PATH"

# javafx is installed to 'java-xx-openjfx', not 'java-xx-openjdk'
exec java --module-path /usr/lib/jvm/java-${JV}-openjfx/lib/javafx.base.jar:/usr/lib/jvm/java-${JV}-openjfx/lib/javafx.controls.jar:/usr/lib/jvm/java-${JV}-openjfx/lib/javafx.graphics.jar:/usr/lib/jvm/java-${JV}-openjfx/lib/javafx.swing.jar --add-modules javafx.base,javafx.controls,javafx.graphics,javafx.swing -jar /usr/share/java/mcaselector.jar "$@"

Cryen commented on 2023-03-24 13:30 (UTC) (edited on 2023-03-24 14:16 (UTC) by Cryen)

Any ideas on how to fix this? It looks like an option suggested by another user was implemented to the script but not recognized by the program?

Unrecognized option: --module-path
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

Edit:
Nevermind, I had to change the default java environment to a never version.

shibashi commented on 2023-01-05 15:04 (UTC)

I get Module javafx.base not found. Turns out that the dependency java-openjfx will install 19.u11-1.

sudo pacman -S java17-openjfx && sudo pacman -Rsn java-openjfx

will resolve this.

MithicSpirit commented on 2022-09-04 19:30 (UTC)

Please replace the jre-openjdk dependency with java-runtime-openjdk so that we can choose which version to use.

lucaswerkmeister commented on 2022-08-27 12:16 (UTC)

Small suggestion for the mcaselector launcher script: Add exec to the beginning of the last line, so that the Java process replaces the shell process, instead of the shell staying around not doing anything :)

sem.z commented on 2022-04-23 07:37 (UTC)

mattsturgeon, I had same problem, turned out there is no javafx jars in /usr/lib/jvm/default/lib, so I reinstalled java-openjfx.

mattsturgeon commented on 2022-04-19 22:25 (UTC) (edited on 2022-04-19 22:29 (UTC) by mattsturgeon)

I get Module javafx.base not found

Error occurred during initialization of boot layer
java.lang.module.FindException: Module javafx.base not found

I see that java-openjfx is a dependency, so I'm not sure what the problem is.

EDIT: archlinux-java status prints:

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

lucaswerkmeister commented on 2021-12-05 14:34 (UTC)

Launcher script suggestion: add exec to the last line, i.e. exec java --module-path … – the launcher script doesn’t need to stay around, waiting for Java to exit.