Adding JavaFX to your Eclipse project

Sometimes you work with an raw Eclipse project without maven based dependency management for example. Maybe your builds still run with ant and all dependencies are configured in Eclipse. With a few tricks you can add JavaFX support to this projects on an easy way:

First of all you need the e(fx)clipse plugin for eclipse. You can find the plugin on the eclipse marketplace or you can download it here. The Plugin offers “JavaFX Library” as a new library type. You can add this library directly to your project to add the JavaFX dependency.

This adds JavaFX to your classpath but does not write an OS specific path in the project configuration. Any developer can now work with the project. The e(fx)clipse plugin handles the JavaFX dependency and finds the correct jar on your system. If the eclipse project depends on a JRE > 7u6 JavaFX is bundled in the JRE and e(fx)clipse finds it automatically.

2 Responses to Adding JavaFX to your Eclipse project

Hinterlasse eine Antwort

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind markiert *

Du kannst folgende HTML-Tags benutzen: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>