-
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
JDK 12 incompatible #955
Comments
and I guess this problem has something to do with this issue: |
Hi, we did face the relevant problem with the same component JFXTextFieldSkin while launching the application. Here is the exception. java.version : 12 we use java fx bundle 12 Thought this is relevant. Let me know if this needs to be created as a new issue |
I tried looking into it but @jfoenixadmin it seems that the branch I tried updating it but went over my head. |
@micheljung no worries, I'll do the merge now. |
Same problem here with jfoenix 9.0.9 |
I am also having a problem with jfoenix 9.0.9 and JDK 12 |
@jfoenixadmin not sure if you saw this already: |
@TheRedSpy15 that's how we are using reflection to access private fields. however I suspect that the field either renamed or removed thus causing this issue. |
I am facing this issue as well |
@jfoenixadmin when will get a fix for this :( |
is this fixed?? |
Not fixed yet |
Am also faced with the same issue java.lang.IllegalAccessException: class com.jfoenix.skins.JFXTextFieldSkin cannot access a member of class javafx.scene.control.skin.TextFieldSkin with modifiers "private" |
did any one resolve this issue ? |
Any fix? |
any fix ? |
Are there any plans for making JFoenix compatible with versions of Java greater than 11? |
@jfoenixadmin We need some kind of a fix for this bug please, I don't want to downgrade to jdk11 just for this issue :( |
Same here. Won't use the library as I am on JDK 14 / JavaFX 12 |
Same here
I am on JDK 14 and JavaFx 14, May be I have to downgrade to JDK 11? |
@viewv yes currently that is the only solution |
aha I see, try adding |
not work for me. See my code: https://github.com/rruffer/library-fx |
@rruffer, I took a look at your code and i noticed you are using maven. I have a question, how did you add the |
Same issue:
|
@jfoenixadmin thx! I use Maven and not sure where I can add it but will investigate |
@jfoenixadmin I am using eclipse. Right click on the project. I'm going to run as. Run configuration. Tab Arguments and vm arguments. |
@jfoenixadmin with work for me |
Yes but for a packaged app? |
I haven't packed it yet. but I usually use launch4j or create a .bat to pass the arguments and start the application. There is this way to configure maven too. But I still haven't tested it by packaging: https://github.com/openjfx/javafx-maven-plugin
|
@jfoenixadmin works for me! |
@jfoenixadmin It's not working for me, I'm on gradle (JDK and JavaFX 14) and I tried adding those arguments in my |
Nevermind, I'm sorted. I had to use The |
I had a problem with gradle and java 14. I couldn't solve it. In the maven I did it. |
@jackpeters667 where do you place these options in gradle ? |
I saw it that way: http://quabr.com:8182/58133725/how-to-fix-jvm-options-exports-javafx-11-to-com-jfoenix-on-gradle-idea But it would be better to ask the developers of the plugin. In the git the maven plugin teaches. They should show it too: https://github.com/openjfx/javafx-gradle-plugin |
after adding the args that @seinecle mentioned im still getting the same issue |
@dubbadhar your |
Okay, I figure out the workaround for my project ((Thank you so much for the replies above ... // some project config, skip it here
repositories {
mavenCentral()
}
javafx {
version = "13"
modules = [ 'javafx.controls', 'javafx.graphics', 'javafx.fxml' ]
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
compile group: 'com.h2database', name: 'h2', version: '1.4.200'
compile 'com.jfoenix:jfoenix:9.0.10'
compile group: 'org.mindrot', name: 'jbcrypt', version: '0.4'
}
run{
jvmArgs = [
"--add-exports=javafx.graphics/com.sun.javafx.scene=ALL-UNNAMED",
"--add-exports=javafx.controls/com.sun.javafx.scene.control.behavior=ALL-UNNAMED",
"--add-exports=javafx.controls/com.sun.javafx.scene.control=ALL-UNNAMED",
"--illegal-access=warn",
"--add-opens=javafx.controls/javafx.scene.control.skin=com.jfoenix",
"--add-opens=java.base/java.lang.reflect=ALL-UNNAMED",
"--add-opens=java.base/java.lang.reflect=com.jfoenix"
]
}
...
|
@seinecle after adding the args to my VM in itellij this is what i get in my console
Pls any idea of what am to do |
This is what i have in my VM |
If someone doesn't work to add the For example, when I added this
, then I added:
to my |
Add these to your VM option |
Adding just |
LAST UPDATE: Thank you a lot, @sawaYch , your comment made everything work in my modular gradle project, what a valuable comment, thanks!!!
No, unfortunately, that doesn't work. Instead, now I'm getting 3 new errors while trying to run my project: `
Note that I'm using modular gradle in my project, which means that I'm using modular-info.java. The following code was added in order to implement the suggested VM options: `run { ] compileTestJava { @jfoenixadmin Any thoughts? |
--add-opens=java.base/java.lang.reflect=com.jfoenix |
Hi:
Today JDK 12 is released and one interesting change is they make javafx.scene.control.skin.TextFieldSkin members private
thus for JFoenix we will get some exception like:
java.lang.IllegalAccessException: class com.jfoenix.skins.JFXTextFieldSkin cannot access a member of class javafx.scene.control.skin.TextFieldSkin with modifiers "private"
at java.base/jdk.internal.reflect.Reflection.newIllegalAccessException(Reflection.java:355)
so any ideas how we should fix this problem?
The text was updated successfully, but these errors were encountered: