Question

I want to create a new project in Eclipse Kepler using the two plugins e(fx)clipse (for JavaFX 2) and m2e. The goal is, to have a Java FX project that I can build with maven from eclipse and that has the folder structure of maven, but I want to use the Java FX SceneBuilder from within Eclipse.

Both plugins have own project types and create different folder structures, so I have to do some stuff manually to combine them. Any ideas?

Was it helpful?

Solution

This is not difficult to do in eclipse. The way I did it was as follows:

1) Create the java project/structure first using a maven archetype (I can not remember the specific one, but a generic java one would do).
2) To use the JavaFX functionality of e(fx)clipse, just make sure the JavaFX libraries are included in the Libraries of you Build Path.
3) To use SceneBuilder, make sure that the executable is configured in Window|Preferences|JavaFX screen.

NB: if you are using a java version that has javaFX already in it (e.g. java 8 or a recent java 7 releaase) then you don't need to add a separate JavaFX library in the build path. This was only necessary when JavaFX was not bundled with the rest of the JDK, which is no longer the case.

Good luck.

  • chooks
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top