-
This is more of a Java modules configuration issue, but I am hoping someone has already encountered this and can point me to the answer. I have the following error when running a the "ChartIndicatorSample" in my project: Caused by: java.lang.IllegalAccessError: superclass access check failed: class de.gsi.chart.ui.ProfilerInfoBox$CustomBreadCrumbButton (in unnamed module @0x1ea72a45) cannot access class impl.org.controlsfx.skin.BreadCrumbBarSkin$BreadCrumbButton (in module org.controlsfx.controls) because module org.controlsfx.controls does not export impl.org.controlsfx.skin to unnamed module @0x1ea72a45 According to the controlsfX documentation I have added the following JVM arguments: "--add-exports=javafx.controls/javafx.scene.control.skin=ALL-UNNAMED",
"--add-exports=javafx.graphics/com.sun.javafx.scene=org.controlsfx.controls",
"--add-exports=javafx.graphics/com.sun.javafx.scene.traversal=org.controlsfx.controls" I have also added other combinations using the module name TIA |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
https://github.com/GSI-CS-CO/chart-fx#javafx-jvm-command-line-options lists the following
|
Beta Was this translation helpful? Give feedback.
-
I have succeeded in using the Caused by: java.lang.IllegalAccessError: superclass access check failed: class de.gsi.chart.ui.ProfilerInfoBox$CustomBreadCrumbButton (in module de.gsi.chartfx.chart) cannot access class impl.org.controlsfx.skin.BreadCrumbBarSkin$BreadCrumbButton (in module org.controlsfx.controls) because module org.controlsfx.controls does not export impl.org.controlsfx.skin to module de.gsi.chartfx.chart But I think the export is correct. Here are my arguments: --module-path /home/hmf/.cache/coursier/v1/https/repo1.maven.org/maven2/de/gsi/chart/chartfx-chart/11.2.6/chartfx-chart-11.2.6.jar:/home/hmf/.cache/coursier/v1/https/repo1.maven.org/maven2/org/openjfx/javafx-base/13.0.1/javafx-base-13.0.1.jar:/home/hmf/.cache/coursier/v1/https/repo1.maven.org/maven2/org/openjfx/javafx-controls/13.0.1/javafx-controls-13.0.1.jar:/home/hmf/.cache/coursier/v1/https/repo1.maven.org/maven2/org/kordamp/ikonli/ikonli-javafx/11.5.0/ikonli-javafx-11.5.0.jar:/home/hmf/.cache/coursier/v1/https/repo1.maven.org/maven2/de/gsi/dataset/chartfx-dataset/11.2.6/chartfx-dataset-11.2.6.jar:/home/hmf/.cache/coursier/v1/https/repo1.maven.org/maven2/de/gsi/math/chartfx-math/11.2.6/chartfx-math-11.2.6.jar:/home/hmf/.cache/coursier/v1/https/repo1.maven.org/maven2/org/controlsfx/controlsfx/11.0.0/controlsfx-11.0.0.jar:/home/hmf/.cache/coursier/v1/https/repo1.maven.org/maven2/org/openjfx/javafx-base/13.0.1/javafx-base-13.0.1-linux.jar:/home/hmf/.cache/coursier/v1/https/repo1.maven.org/maven2/org/openjfx/javafx-controls/13.0.1/javafx-controls-13.0.1-linux.jar:/home/hmf/.cache/coursier/v1/https/repo1.maven.org/maven2/org/openjfx/javafx-graphics/13.0.1/javafx-graphics-13.0.1.jar:/home/hmf/.cache/coursier/v1/https/repo1.maven.org/maven2/org/openjfx/javafx-media/11/javafx-media-11.jar:/home/hmf/.cache/coursier/v1/https/repo1.maven.org/maven2/org/openjfx/javafx-graphics/13.0.1/javafx-graphics-13.0.1-linux.jar:/home/hmf/.cache/coursier/v1/https/repo1.maven.org/maven2/org/openjfx/javafx-media/11/javafx-media-11-linux.jar
--add-modules javafx.graphics de.gsi.chartfx.dataset javafx.base de.gsi.chartfx.math org.controlsfx.controls de.gsi.chartfx.chart javafx.controls javafx.media
--add-exports=javafx.controls/javafx.scene.control.skin=ALL-UNNAMED
--add-exports=javafx.graphics/com.sun.javafx.scene=org.controlsfx.controls
--add-exports=javafx.graphics/com.sun.javafx.scene.traversal=org.controlsfx.controls
--add-reads=javafx.graphics=ALL-UNNAMED
--add-opens=javafx.controls/com.sun.javafx.charts=ALL-UNNAMED
--add-opens=javafx.controls/com.sun.javafx.scene.control.inputmap=ALL-UNNAMED
--add-opens=javafx.graphics/com.sun.javafx.iio=ALL-UNNAMED
--add-opens=javafx.graphics/com.sun.javafx.iio.common=ALL-UNNAMED
--add-opens=javafx.graphics/com.sun.javafx.css=ALL-UNNAMED
--add-opens=javafx.base/com.sun.javafx.runtime=ALL-UNNAMED
--add-exports=javafx.controls/com.sun.javafx.scene.control.behavior=ALL-UNNAMED
-Dprism.verbose=true
-ea I have also set the library version to the ones in the Maven POM just in case. Mut be something with the |
Beta Was this translation helpful? Give feedback.
-
Want to mark your reply as an answer but see no option to do it. If you post a new entry I will marked it so. |
Beta Was this translation helpful? Give feedback.
I have succeeded in using the
chart-fx
as a module. But the error is essentially the same - the module is not unnamed now. Here is the error:But I think the export is correct. Here are my arguments: