You can use JavaFx by 2 means.
A - Include the jars in the Java Build Path. I've not been successful with this one, so, let me give you the second means.
B - Install the JavaFx plug-in for eclipse. These are my notes as I worked through it. Let me know if anything doesn't make sense.
- With Eclipse open, click Help > Install New Software…
- Click the Add… button.
- Enter a name, such as JavaFX.
- Enter the location as follows: http://download.eclipse.org/efxclipse/updates-released/1.2.0/site/
- Check both options “e(fx)clipse – install” and “e(fx)clipse – single components” as shown. Accept other defaults. Click the Next button.
- These are the items that will be installed. Click Next again.
- Accept terms and click Finish.
You’ll be prompted to reboot Eclipse. The plug-in is now installed and is ready to use.
Now, to use JavaFx...
- Navigate to File > New > Project
- In the New Project wizard, select JavaFx > JavaFX Project
- Enter a name for the project, ie, JavaFxDemo, etc. Click Finish.
- Go to the project name > src > application. Click once on application to highlight. Create classes here (right-mouse click, New > Class)
Hope this helps,