I am working with Java FX on Mac.
I had to change the slashes for some other paths in the project I imported from \\ to /.
Further the CSS file wasn’t loading using getClass().getResource(“style.css”) – it was giving null which is not a problem I had on Windows. It seems to be how eclipse imported the project – there is a part of the configuration that allows which files are include format **/*.java. I added **/*.css and it worked.
