Skip to main content
Jump to: navigation, search



From creation to deployment How to create a very basic e(fx)clipse project on a Mars 4.5.0 version of eclipse. These instructions were written and the screen captures taken with a clean install of the Eclipse for RCP and RAP Developers 64 bit package available here ( The Operating system used was Windows 7 SP1. These steps do not include the install of eclipse 4.5.0 (Mars). This tutorial does not cover installing the e(fx)clipse IDE and setup a target platform for your application development. See this tutorial for instructions on how to install the e(fx)eclipse IDE and setup a target platform.

  1. File > New > Project


  1. Type in JavaFX in the Wizards: text box.
  2. Select the JavaFX Project entry
  3. Press the Next > button.


  1. Enter a project name MyJavaFXApp at the Project name: text box
  2. Press press the Next > button.


  1. Take the defaults and press the Next > button.


  1. Take the defaults and press the Finish button.


  1. Select the Main class.
  2. Pull up the context pop pout menu with a right mouse click.
  3. Select the Run As option.
  4. Select the Java Application Alt+Shift+X, J option on the sub pop out context menu.


  1. An empty window is rendered.
  2. Close the window.


  1. Add the following four lines of Java Code at the location screen on the following screen capture.
  2. Save the changes by typing CTL+S

Add-four-lines-of-Java-code.png root.setTop(new Text("Top")); root.setBottom(new Text("Bottom")); root.setRight(new Text("Right")); root.setLeft(new Text("Left"));

  1. Run the application again.
  2. This time the words Top, Bottom, Left, Right and Center will appear. The green boxes will not render. The green box are just something added to the screen capture to help the newbie see how the parts of a BorderPane layout.



  1. Open the build.fxbuild file.
  2. At the Vendor name*: text box enter BestSolutions.
  3. At the Application Title*: text box enter BestSolutions.
  4. At the Application version*: text box enter 1.0.0.


  1. At the Application Class*: text box press the Browse ... button.
  2. Pick the Main entry and press the OK button.


  1. Save the changes by typing CTL+S
  2. Click on the ant build.xml and run link in the build section of the editor.


  1. On the Not a JDK dialog press the Yes button.


  1. On the Select a JDK dialog select ??? and press the OK button.


??? stopped here ????
Figure out why the list of JDKs is empty????

Expand the folders in the "Package Explorer" and double click your jar file.

Back to the top