我正在尝试在 IntelliJ 上构建 JFX 应用程序。我使用以下命令安装了 JavaFX:
sudo apt-get install openjfx
我找到了我应该添加jfxswt.jar
到jfxrt.jar
类路径的地方。我在find
根目录上运行了该命令,但没有找到任何一个文件。
编辑:
apt policy openjfx
输出:
openjfx:
Installed: 11.0.2+1-1~18.04.2
Candidate: 11.0.2+1-1~18.04.2
Version table:
*** 11.0.2+1-1~18.04.2 500
500 http://jo.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages
500 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages
100 /var/lib/dpkg/status
8u161-b12-1ubuntu2 500
500 http://jo.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
编辑2:
dpkg -L openjfx
输出:
/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/openjfx
/usr/share/doc/openjfx/TODO.Debian
/usr/share/doc/openjfx/changelog.Debian.gz
/usr/share/doc/openjfx/copyright
/usr/share/openjfx
/usr/share/openjfx/lib
/usr/share/openjfx/lib/javafx.properties
/usr/share/openjfx/lib/javafx.base.jar
/usr/share/openjfx/lib/javafx.controls.jar
/usr/share/openjfx/lib/javafx.fxml.jar
/usr/share/openjfx/lib/javafx.graphics.jar
/usr/share/openjfx/lib/javafx.media.jar
/usr/share/openjfx/lib/javafx.swing.jar
/usr/share/openjfx/lib/javafx.web.jar
编辑3:
ls /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/
输出:
accessibility.properties ext jvm.hprof.txt resources.jar
amd64 flavormap.properties logging.properties rt.jar
calendars.properties hijrah-config-umalqura.properties management security
charsets.jar images management-agent.jar sound.properties
classlist jar.binfmt meta-index swing.properties
cmm jce.jar net.properties tzdb.dat
content-types.properties jexec psfontj2d.properties
currency.data jsse.jar psfont.properties.ja