If you create a Java project in Eclipse for the javafx-samples-2.2.4 and find that the samples won't compile due to missing imports for JavaFX classes then you just need to add the jfxrt.jar to your build path:
Step 1) Right click on your Java Project and select Build Path->Configure Build Path...
Step 2) Go to the Libraries tab and click Add External JARs...
Step 3) Navigate to <your JDK>/jre/lib and select jfxrt.jar and click OK
Your project should now build without errors