11

How can I disable Unknown property: error in eclipse while writing JavaFx css properties on Eclipse Mars?

For example: Unknown property: "-fx-background-color" in -fx-background-color: #CCFF99;

Program-Me-Rev
  • 6,184
  • 18
  • 58
  • 142

2 Answers2

24

Right click on your project and go to build path > Configure build path. Under libraries, click on "Add library..." button. Add JavaFX SDK to your project. This will resolve your issue.

Add Library

Aubin
  • 14,617
  • 9
  • 61
  • 84
spdl83
  • 326
  • 3
  • 5
0

Not sure since I can't reproduce this issue, but do you have e(fx)clipse installed? If not, try installing it- it seems to help Eclipse to be more compatible with javaFX.

If you already have it, or if it doesn't help, try the solutions posted here, here, and here.

Community
  • 1
  • 1