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

Compiling error (Missing JavaFX dependency) #86

Closed
loeffelpan opened this issue May 3, 2019 · 5 comments
Closed

Compiling error (Missing JavaFX dependency) #86

loeffelpan opened this issue May 3, 2019 · 5 comments
Labels
bug Something isn't working

Comments

@loeffelpan
Copy link

Hey,
got this on compiling 0.5.2.

[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.2:compile (default-compile) on project librespot-api-client: Compilation failure
[ERROR] /home/osmc/librespot-java/api-client/src/main/java/xyz.gianlu.librespot.api.client/ResponseDialogController.java:[3,20] cannot access javafx.scene.Node
[ERROR] bad class file: /home/osmc/.m2/repository/org/openjfx/javafx-graphics/12ea+8/javafx-graphics-12-ea+8-linux.jar(javafx/scene/Node.class)
[ERROR] class file has wrong version 55.0, should be 52.0
[ERROR] Please remove or make sure it appears in the correct subdirectory of the classpath.
@devgianlu devgianlu added the bug Something isn't working label May 3, 2019
@devgianlu
Copy link
Member

I cannot reproduce this on Ubuntu with the latest commit.

@loeffelpan
Copy link
Author

Hmm, first time I tried to compile this directly on my RPi.
Java is OpenJDK8. Maybe that‘s the issue?

Compiling (like before) on my Ubuntu works (with OpenJDK10).

@devgianlu
Copy link
Member

OpenJDK8 doesn't include JavaFx (adoptium/temurin-build#577), install JavaFX in your system or run mvn -pl '!api-client' package to skip the module that requires the dependency.

@devgianlu devgianlu changed the title Compiling error Compiling error (Missing JavaFX dependency) May 3, 2019
@loeffelpan
Copy link
Author

Thanks.
Does this mean, that api-client wouldn’t work anyway on this device?
Then I would run mvn -pl core,common package and build without api, api-client and interactive-cli. Would that work?

@devgianlu
Copy link
Member

The api-client module will refuse to compile until you install JavaFX on the system.

Then I would run mvn -pl core,common package and build without api, api-client and interactive-cli. Would that work?

Should work totally fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants