-1

I just installed the newest Eclipse and e(fx)clipse, but it didn't change anything - I have no idea why javafx imports are not resolved.

Sorry I can't provide more proves I tried to solve it, but I just think (and remember it was I like that before) installing it and restarting Eclipse should be sufficient.

Line
  • 1,529
  • 3
  • 18
  • 42
  • @Andreas I don't see this error anywhere. Even if the cause is the same, my question is different. – Line Dec 30 '18 at 22:59
  • @Andreas another thing: the accepted answer there doesn't mention e(fx)clipse at all - and I suppose this is what it is for - so I don't need to care about the details of installation. I just checked what is in installed JREs and it seems ok (it's JDK) – Line Dec 30 '18 at 23:04

1 Answers1

1

The purpose of e(fx)clipse is not to resolve JavaFX imports. If using Java 11 or higher, you have to add the JavaFX dependency yourself because JavaFX has been removed in Java 11. See Java 11 release notes:

JavaFX is no longer included in the JDK. It is now available as a separate download from openjfx.io.

See: Getting Started with JavaFX 11

e(fx)clipse offers as a runtime e. g. a way to build JavaFX OSGi/Eclipse-based applications and provides tooling for JavaFX, e. g. to edit FXML files.

howlger
  • 31,050
  • 11
  • 59
  • 99