JavaFX - Stylesheets problem.

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

9 comments
Comment actions Permalink

Hi,

It seems that $JAVA_HOME/jre/lib/jfxrt.jar is missing in your classpath.

0
Comment actions Permalink

Unfortunately (fortunately) I've got set  $JAVA_HOME/jre/lib/ext/jfxrt.jar

0
Comment actions Permalink

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

0
Comment actions Permalink

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 ?

0
Comment actions Permalink

Yes, the problems should be fixed in the next IDEA 14.1 EAP

0
Comment actions Permalink

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

0
Comment actions Permalink

Works ! Thanks for help.


0
Comment actions Permalink

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.

0

Please sign in to leave a comment.