【发布时间】:2020-02-06 07:27:13
【问题描述】:
java -version
openjdk version "1.8.0_242"
OpenJDK Runtime Environment (build 1.8.0_242-8u242-b08-0ubuntu3~19.10-b08)
OpenJDK 64-Bit Server VM (build 25.242-b08, mixed mode)
然而,openjfx 包:
sudo apt list openjfx
Listing... Gotowe
openjfx/eoan,now 11.0.2+1-1 amd64 [installed]
openjfx/eoan 11.0.2+1-1 i386
似乎是用 java 10 编译的,因为我无法运行任何 JavaFX 应用程序:
Error:(3, 26) java: cannot access javafx.application.Application
bad class file: /usr/share/openjfx/lib/javafx.graphics.jar!/javafx/application/Application.class
class file has wrong version 54.0, should be 52.0
Please remove or make sure it appears in the correct subdirectory of the classpath.
有没有任何模式让它工作?
【问题讨论】:
-
使用包含javafx的oracle版本
标签: java ubuntu javafx ubuntu-19.04