Java 11 e4 application :IllegalAccessError [message #1822245] |
Mon, 02 March 2020 12:32  |
Eclipse User |
|
|
|
Hello everyone,
I migrate a big e4 application to java 11, efxclipse 3.6.2 and openjfx 11.0.2
I have two illegalAccesError:
java.lang.IllegalAccessError: class core.client.application.fx.ui.addons.WindowPlacerAddon (in unnamed module @0x2ed84910) cannot access class com.sun.glass.ui.Screen (in module javafx.graphics) because module javafx.graphics does not export com.sun.glass.ui to unnamed module @0x2ed84910
-> Use method Screen.getScreens(); to obtain screen add open my 2 applications windows in each screen
java.lang.IllegalAccessError: class core.client.application.fx.ui.addons.ItemHelperAddon$WidgetListener$1$1 (in unnamed module @0x3f638b30) cannot access class com.sun.javafx.scene.control.ContextMenuContent (in module javafx.controls) because module javafx.controls does not export com.sun.javafx.scene.control to unnamed module @0x3f638b30
-> Use to add contextual help in a status bar when hover a item in contextual menu
I'm add this to the VM arguments :
--module-path=/home/bonnafous/opt/java/javafx-sdk-11.0.2/lib
--add-modules=javafx.base,javafx.controls,javafx.graphics,javafx.fxml
--add-exports=javafx.controls/com.sun.javafx.scene.control=ALL-UNNAMED
--add-exports=javafx.graphics/com.sun.glass.ui=ALL-UNNAMED
This solution :
- does'nt work with an external folder -Defxclipse.java-modules.dir (duplicate module error)
- works with bundled javafx-modules but i prefer a solution with only bundled javafx-modules without using javafx installation path.
Is it possible to export classes Screen and ContextMenuContent with options in the
bundled javafx-modules ?
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03875 seconds