I am working on adding CSS file in an Fxml file like below.
<BorderPane maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" minHeight="-Infinity" minWidth="-Infinity" prefHeight="700.0" prefWidth="1200.0" stylesheets="@../../../resources/css/home.css" xmlns="http://javafx.com/javafx/8.0.111" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.ctc.controller.SupplierUpdateController">
As you can see I have added the css like stylesheets="@../../../resources/css/home.css"
This has done by using scene builder in windows and it worked fine. But when I have created the jar and run on ubuntu 16.04, the CSS does not get applied and there is following error in the console.
Oct 15, 2017 6:18:02 PM com.sun.javafx.css.StyleManager loadStylesheetUnPrivileged
INFO: Could not load stylesheet: rsrc:../../../resources/css/home.css
This was working properly when I am running the application while in eclipse in ubuntu. But for the ar created it is not taking the CSS files.