-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Can we use JFoenix with Java 11 as is ? #889
Comments
From my experience, the short answer is yes, but needs some configuration. As JavaFX is not shipped with Java 11, you first have to setup JavaFX correctly. If you choose a non-module code structure, things should have been done. If you use Java 9 Module, some more configuration is needed. |
I think the 9.x.x version should work with JavaFX 11.
|
I am using Java11 and set up a module project ... the problem is Eclipse is reporting errors about JFoenix packages not found anymore that's why i asked ..... I figured how to use JavaFX in pom.xml you can see here => https://github.com/goxr3plus/XR3Converter/tree/Java-11 Everything works except JFoenix , well ControlsFX too ( but here is JFoenix repo so...) How i can configure JFoenix to work with Java 11 ? @DJViking :) |
You might be facing the same problem I face several weeks ago. Could you post the error message, then I can confirm if it's the same problem as mine. If yes, I will post the solution. |
I'm not quite sure with Maven. I moved over to Gradle after Java 9. Though when generating the eclipse classpath file, it places all dependencies on the classpath and not the modulepath. I fix this by moving them all to the modulepath section in Eclipse. |
Thank you so much for detailed, Eclipse is showing like packages are
missing from JFoenix even if i have added it in the pom. xml. as it was in
Java 10 :)
…On Mon, Dec 3, 2018, 21:03 Sverre Moe ***@***.*** wrote:
How i can configure JFoenix to work with Java 11 ?
I'm not quite sure with Maven. I moved over to Gradle after Java 9.
I do not need to configure anything in my gradle build script to get
JFoenix working with Eclipse.
implementation(group: 'com.jfoenix', name: 'jfoenix', version: '9.0.8')
Though when generating the eclipse classpath file, it places all
dependencies on the classpath and not the modulepath. I fix this by moving
them all to the modulepath section in Eclipse.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#889 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ATbiwE2m06kHQv99XMzpEljy8iQAIipRks5u1XWNgaJpZM4Y9mU7>
.
|
If you face something like
then you can solve it by adding those jvm arguments as jfoenix |
True. I tweak the VM args to make my app running under openjdk/openjfx 11. For instance, I add the followings in IntelliJ's
Granted, in order to make jfoenix works, it should need less and doesn't need all of these. But in my app, I use controlsfx and other non-Java 11 compliant libraries. You may have to go one by one to find what |
Guys do you know how i can solve this error with Java11 and JFoenix latest version ? Exception in thread "JavaFX Application Thread" 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 |
|
Is this workable on maven project? |
Yes, you are right. But I also want to add a point that when I use Intellij IDEA to run my application, in my VM option, I write it as: --add-modules=javafx.base and when I use --add-modules=javafx.base, javafx.controls, javafx.fxml, javafx.graphics, javafx.media, javafx.swing, javafx.web my java throws me an error. |
Hello
|
I have same problem, but when I run it in intellij Gradle - Task - application - run -> everything is fine, but when I try it in console "gradlew run", then show me that error, some body know how to fik it? |
maybe different jdk in the project and the system |
This is so complicated. @jfoenixadmin could you please fix this by embedding the |
Hello today i am trying to pass some projects on Java 11 is JFoenix ready for that :) ?
The text was updated successfully, but these errors were encountered: