Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to find JavaFX (21, 23) #518

Open
txtsd opened this issue Jan 22, 2025 · 1 comment
Open

Fails to find JavaFX (21, 23) #518

txtsd opened this issue Jan 22, 2025 · 1 comment

Comments

@txtsd
Copy link

txtsd commented Jan 22, 2025

Describe the bug
Even with openjfx 21 and openjfx 23 installed, mca selector fails to find it and refuses to start.

To Reproduce
Steps to reproduce the behavior:

  1. Install jre/jdk 21
  2. Install openjfx 21
  3. Ty to start mca selector
  4. See JavaFX missing error

Expected behavior
mca selector should be able to find and use openjfx

Screenshots and other files
Image

Environment (please complete the following information):

  • OS: Arch Linux
  • Java version: 21.0.5
  • Version of MCA Selector: 2.4.2
@txtsd
Copy link
Author

txtsd commented Jan 22, 2025

Managed to get it to work. I had to manually locate the libraries like so:

java --module-path "${JAVA_HOME}/lib/javafx.base.jar:${JAVA_HOME}/lib/javafx.fxml.jar:${JAVA_HOME}/lib/javafx.graphics.jar:${JAVA_HOME}/lib/javafx.media.jar:${JAVA_HOME}/lib/javafx.swing.jar:${JAVA_HOME}/lib/javafx.web.jar:${JAVA_HOME}/lib/javafx.controls.jar" --add-modules=javafx.base --add-modules=javafx.fxml --add-modules=javafx.graphics --add-modules=javafx.media --add-modules=javafx.swing --add-modules=javafx.web --add-modules=javafx.controls -jar mcaselector-2.4.2.jar

Perhaps including a bash script that does this alongside the jar file would be a good idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant