Open
Description
Getting started tutorial for JavaFX and IntelliJ, modular with Gradle does not work
I use java 14 version, 6.5.1 gradle version and IntelliJ 2020.1.4 version
Tutorial can be found here: https://openjfx.io/openjfx-docs/#IDE-Intellij
I repeated exactly every step, except used java 14
Task :run FAILED
Error occurred during initialization of boot layer
java.lang.module.FindException: Error reading module: /home/fataho/IdeaProjects/hellofx/build/classes/java/main
Caused by: java.lang.module.InvalidModuleDescriptorException: Package hellofx.org.openjfx not found in module
Caused by: java.lang.module.InvalidModuleDescriptorException: Package hellofx.org.openjfx not found in module
Execution failed for task ':run'.
> Process 'command '/usr/java/jdk-14+36/bin/java'' finished with non-zero exit value 1
build.gradle
plugins {
id 'application'
id 'org.openjfx.javafxplugin' version '0.0.8'
id 'org.beryx.jlink' version '2.12.0'
}
repositories {
mavenCentral()
}
javafx {
version = "14"
modules = [ 'javafx.controls', 'javafx.fxml' ]
}
mainClassName = "$moduleName/org.openjfx.MainApp"
jlink {
options = ['--strip-debug', '--compress', '2', '--no-header-files', '--no-man-pages']
launcher {
name = 'hellofx'
}
}
module-info.java
module hellofx {
requires javafx.controls;
requires javafx.fxml;
opens org.openjfx to javafx.fxml;
exports org.openjfx;
}
Metadata
Metadata
Assignees
Labels
No labels