Search code examples
javaeclipseeclipse-pluginjavafxeclipse-luna

IDE: e(fx)clipse not working properly


I have the following problem:

I have installed e(fx)clipse in Eclipse to enable JavaFX compatibility. It properly created the following:

  • CSS and FXML files are associated with the correct editor (from within 'file associations')

It is not functioning properly, because it lacks to do the following:

  • It shows Unknown property: -fx-.... for every entry in my CSS.
  • It does not autocomplete in both the FXML and CSS files.
  • It keeps showing: The controller 'someController' has no field 'someField', while the fields are initiated in the controller.

What I already tried to fix this:

  • Added JavaFX SDK to the project libraries.
  • Checked the installed software section of Eclipse, but all of the e(fx)clipse packages are correctly installed.
  • Created a new JavaFX project from scratch.

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!


Solution

  • I got this problem solved after installing Eclipse web developer tools and Eclipse Java web developer tools.