После запуска IntelliJ я создал демонстрационный проект javaFX (по умолчанию, который IntelliJ создает для вас), и когда я нажимаю кнопку «Выполнить», я получаю следующее сообщение:
Код: Выделить всё
/path/toproject/.../IdeaProjects/demo/src/main/java/module-info.java
java: modules are not supported in -source 8
(use -source 9 or higher to enable modules)
Код: Выделить всё
module com.example.demo {
requires javafx.controls;
requires javafx.fxml;
requires com.dlsc.formsfx;
opens com.example.demo to javafx.fxml;
exports com.example.demo;
}
Код: Выделить всё
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0
com.example
demo
1.0-SNAPSHOT
demo
UTF-8
5.10.2
org.openjfx
javafx-controls
17.0.6
org.openjfx
javafx-fxml
17.0.6
com.dlsc.formsfx
formsfx-core
11.6.0
org.openjfx
*
org.junit.jupiter
junit-jupiter-api
${junit.version}
test
org.junit.jupiter
junit-jupiter-engine
${junit.version}
test
org.apache.maven.plugins
maven-compiler-plugin
3.13.0
8
8
org.openjfx
javafx-maven-plugin
0.0.8
default-cli
com.example.demo/com.example.demo.HelloApplication
app
app
app
true
true
true

[

]

Подробнее здесь: https://stackoverflow.com/questions/797 ... odules-are
Мобильная версия