InaccessibleObjectException: Unable to make protected javafx.collections.ObservableList javafx.scene.Parent.getChildren() accessible: module javafx.graphics does not "opens javafx.scene" to unnamed module @7a5d012c
what version of kotlin and tornadofx?
Kotlin : 1.3.72 , tornadofx : 2.0.0-SNAPSHOT
I run the jar using following command
java --module-path "C:Pathtojavafx-sdk-11.0.2lib" --add-modules javafx.base,javafx.controls,javafx.fxml,javafx.graphics -jar My_jar.jar
When I add the option , --add-opens=javafx.graphics/javafx.scene=tornadofx
But I still get the same error and a new warning .
Unknown module: javafx.graphics specified to --add-opens
https://openjfx.io/ There is an instruction on how to install JavaFX sdk. Alternatively, find a JDK that includes JavaFX.
Same as #1270 and #1217