IntelliJ IDEA Open API and Plugin Development Is Deprecated. Join our JetBrains Platform Community.
JavaFX - Stylesheets problem.
4 人关注
Hello,
I've started to develop plugin with some more complex UI in JavaFX. Unfortunately I'm getting below warning:
"
com.sun.javafx.css.StyleManager loadStylesheetUnPrivileged
WARNING: Resource "com/sun/javafx/scene/control/skin/modena/modena.css" not found.
"
It happen for example when creating objects like NumberAxis.
In case of using the same constructions in normal Java project with JavaFX there are no such warnings.
Any idea what is the reason ?
Piotr
请先登录再写评论。
Hi,
It seems that $JAVA_HOME/jre/lib/jfxrt.jar is missing in your classpath.
Unfortunately (fortunately) I've got set $JAVA_HOME/jre/lib/ext/jfxrt.jar
You may add $JAVA_HOME/jre/lib/ext/jfxrt.jar explicitly to the IDEA instance you debug with.
Please follow the https://youtrack.jetbrains.com/issue/IDEA-109043.
Anna
I'm using Java 8, so there shouldn't be any problems with default classpath or I'm wrong ?
In link that you've passed, Mykola Golubyev also talks about the need of including jfxrt.jar in plugin even for Java 8. His ticket has state "Fixed" now. Does it mean that his problem will be fixed in Idea 14.1 ?
Yes, the problems should be fixed in the next IDEA 14.1 EAP
Good to know it, because I spent a lot of time on fighting with it and searching problems where probably I shouldn't :) Do you know when the release is planned ?
Edit: Probably I can already test this fix using this: https://confluence.jetbrains.com/display/IDEADEV/IDEA+14.1+EAP
Yes, now :)
Works ! Thanks for help.
Huh, I'm seeing this same issue when running a javafx app from a scala project (as an sbt task) on 14.1.
Installing the 15 EPA now to see if this is still an issue there.