You are not logged in.
I am trying to build a javafx project (written by me a few years ago). All works well when I use java8 (this was the version the project was developed with), but I cannot get to build it with newer java version (tried with versions 11 and 13). The errors I get are the following:
daltonism/Daltoniser.java:5: error: package javafx.beans does not exist
import javafx.beans.InvalidationListener;
^
daltonism/Daltoniser.java:6: error: package javafx.application does not exist
import javafx.application.Application;
(a lot of errors like this)It looks like javafx is not (properly) installed. But I have installed it, here is my java-related package:
java-environment-common 3-2
java-openjfx 13.u14-1
java-runtime-common 3-2
java11-openjfx 11.0.3.u1-1
java8-openjfx 8.u202-3
jre-openjdk 13.0.2.u8-1
jre-openjdk-headless 13.0.2.u8-1
jre11-openjdk 11.0.6.u10-1
jre11-openjdk-headless 11.0.6.u10-1
jre8-openjdk 8.u242-1
jre8-openjdk-headless 8.u242-1The error appears if I set the default java to the 13 (or 11) version:
[xxx]$ sudo archlinux-java get
java-13-openjdk
If I set java to the 8 version, all normally works:
sudo archlinux-java set java8-openjfx. I have not looked at characteristics of newer java versions, but I do not expect javafx having changed to the point where none of the previous javafx packages cannot even be found. It must be an installation problem.
Last edited by olive (2020-03-06 10:21:25)
Offline
I have not looked at characteristics of newer java versions.
You should, because these changes are precisely the reason for this behaviour:
https://openjfx.io/openjfx-docs/#install-javafx
https://www.oracle.com/corporate/featur … dules.html
https://www.baeldung.com/java-9-modularity
Offline