I have the following problem:
I have installed e(fx)clipse in Eclipse to enable JavaFX compatibility. It properly created the following:
It is not functioning properly, because it lacks to do the following:
Unknown property: -fx-....
for every entry in my CSS. The controller 'someController' has no field 'someField'
, while the fields are initiated in the controller. What I already tried to fix this:
This didn't fix the problem. I think it has something to do with adding the library, because when I add JavaFX SDK and click 'Next', I get a blanco screen and I have to click 'Finish'. When I do, it only adds org.eclipse.fx.ide.css.jfx8
. Is this just normal, or should there be more packages?
I am using Eclipse Luna 4.4.1 and Java JDK 8u40.
Any help is greatly appreciated!
To clarify Alex's answer.
I had the same issue of being unable to get auto-complete with my JavaFX CSS. My fix was add the JavaFX SDK to the library list. To do that:
CSS editing worked after those steps.
安装Eclipse Web开发人员工具和Eclipse Java Web开发人员工具后,我解决了这个问题。
I got the same issue, an before installing packages mention above, I included JavaFX SDK and I put it on top of my "Order and Export". e(fx)clipse start working without any Unknown property and the Auto-Complete starts working as well.
Project -> Properties -> Java Build Path -> Order and Export Tab and put the JavaFX SDK on the top...
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.