question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

JavaFX11 Modules & Jfoenix

See original GitHub issue

Trying to modularize my javafx 10 application to 11and I start getting these errors when my application tries to load certain elements like the TabPane.

Caused by: java.lang.IllegalAccessError: class com.jfoenix.skins.JFXTabPaneSkin (in module com.jfoenix) cannot access class com.sun.javafx.scene.control.behavior.TabPaneBehavior (in module javafx.controls) because module javafx.controls does not export com.sun.javafx.scene.control.behavior to module com.jfoenix

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:15

github_iconTop GitHub Comments

10reactions
jfoenixadmincommented, Oct 29, 2018

you need to add the proper export to your project when running / compiling. as most of internal JavaFX api is no longer accessible directly in Java 9+

5reactions
jesa29commented, Mar 11, 2020

Hey there any idea how I can add the vm settings to my maven project ?

Same question

Here we go

<plugin>
                <groupId>org.openjfx</groupId>
                <artifactId>javafx-maven-plugin</artifactId>
                <version>0.0.3</version>
                <configuration>
                    <options>
                        <option>--add-opens</option>
                        <option>javafx.graphics/javafx.css=ALL-UNNAMED</option>
                        <option>--add-opens</option>
                        <option>javafx.base/com.sun.javafx.runtime=ALL-UNNAMED</option>
                        <option>--add-opens</option>
                        <option>javafx.controls/com.sun.javafx.scene.control.behavior=ALL-UNNAMED</option>
                        <option>--add-opens</option>
                        <option>javafx.controls/com.sun.javafx.scene.control=ALL-UNNAMED</option>
                        <option>--add-opens</option>
                        <option>javafx.base/com.sun.javafx.binding=ALL-UNNAMED</option>
                        <option>--add-opens</option>
                        <option>javafx.base/com.sun.javafx.event=ALL-UNNAMED</option>
                        <option>--add-opens</option>
                        <option>javafx.graphics/com.sun.javafx.stage=ALL-UNNAMED</option>
                        <option>--add-exports</option>
                        <option>javafx.controls/com.sun.javafx.scene.control.behavior=com.jfoenix</option>
                        <option>--add-exports</option>
                        <option>javafx.controls/com.sun.javafx.scene.control=com.jfoenix</option>
                        <option>--add-exports</option>
                        <option>javafx.base/com.sun.javafx.binding=com.jfoenix</option>
                        <option>--add-exports</option>
                        <option>javafx.graphics/com.sun.javafx.stage=com.jfoenix</option>
                        <option>--add-exports</option>
                        <option>javafx.base/com.sun.javafx.event=com.jfoenix</option>
                    </options>
                    <mainClass>application.Main</mainClass>
                </configuration>
            </plugin>
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix jfoenix modules with javafx 11 - Stack Overflow
One way you can try fixing this is by adding the vm option for the required export:
Read more >
Java – How to fix jfoenix modules with javafx 11 - iTecNote
So I'm adding my requires for module-info.java and finally got my program to load but as soon as tab pane wants to load...
Read more >
How To Fix Jfoenix Modules With Javafx 11 - ADocLib
So I'm adding my requires for moduleinfo.java and finally got my program to load but as soon as tab pane wants to load...
Read more >
How to fix jvm options exports javafx 11 to com.jfoenix on ...
[Solved]-How to fix jvm options exports javafx 11 to com.jfoenix on gradle ... If you are running a non modular project (you don't...
Read more >
Overview (JavaFX 11)
JavaFX 11. All Classes. SEARCH: JavaScript is disabled on your browser. Modules. Module, Description. javafx.base. Defines the base APIs for the JavaFX UI ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found