Tornadofx: When I run my tornadofx app . I got this error.

Created on 12 Sep 2020  路  6Comments  路  Source: edvin/tornadofx

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

All 6 comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

arslancharyev31 picture arslancharyev31  路  7Comments

MairwunNx picture MairwunNx  路  3Comments

AlmasB picture AlmasB  路  8Comments

vlipovetskii picture vlipovetskii  路  6Comments

pavan-p picture pavan-p  路  3Comments