Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception on TextFieldAutoCompletion #1505

Open
wise-coders opened this issue Jun 14, 2023 · 1 comment
Open

Exception on TextFieldAutoCompletion #1505

wise-coders opened this issue Jun 14, 2023 · 1 comment

Comments

@wise-coders
Copy link

java.lang.IllegalAccessError: class org.controlsfx.control.textfield.AutoCompletionBinding (in unnamed module @0x6fac7bb6) cannot access class com.sun.javafx.event.EventHandlerManager (in module javafx.base) because module javafx.base does not export com.sun.javafx.event to unnamed module @0x6fac7bb6

at org.controlsfx.control.textfield.AutoCompletionBinding.(AutoCompletionBinding.java:538)

at impl.org.controlsfx.autocompletion.AutoCompletionTextFieldBinding.(AutoCompletionTextFieldBinding.java:107)

at impl.org.controlsfx.autocompletion.AutoCompletionTextFieldBinding.(AutoCompletionTextFieldBinding.java:92)

at com.wisecoders.dbs.project.convert.model.NamingDictionary.a(NamingDictionary.java:197)

at com.wisecoders.dbs.dialogs.layout.FxTableEditor.createContentPane(FxTableEditor.java:149)

at com.wisecoders.dbs.sys.fx.Dialog$.showDialog(Dialog$.java:231)

at com.wisecoders.dbs.dialogs.layout.FxEditorFactory.a(FxEditorFactory.java:130)

at com.wisecoders.dbs.dialogs.layout.FxEditorFactory.a(FxEditorFactory.java:26)

at com.wisecoders.dbs.project.fx.FxFrame.editUnit(FxFrame.java:986)

at com.wisecoders.dbs.project.fx.FxFrame.editTable(FxFrame.java:980)

@7Adrian
Copy link

7Adrian commented Jun 28, 2023

You can fix that by adding --add-exports=javafx.base/com.sun.javafx.event=org.controlsfx.controls to your VM options.

Intellij Edit configuration -> Modify options -> Add VM options and paste:

--add-exports=javafx.base/com.sun.javafx.event=org.controlsfx.controls

Gradle add that line to build.gradle

applicationDefaultJvmArgs += ['--add-exports=javafx.base/com.sun.javafx.event=org.controlsfx.controls']

launch4j edit launch4j in build.gradle

launch4j {
    jvmOptions = ['--add-opens=javafx.base/com.sun.javafx.event=ALL-UNNAMED']
}

002sky added a commit to 002sky/OOP_Group_Project_Inventory that referenced this issue Jul 17, 2023
002sky added a commit to 002sky/OOP_Group_Project_Inventory that referenced this issue Jul 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants