Eclipse RCP e4 and JavaFX: minimal working example

running3
  1. Install Java 8

  2. Install JavaFX Tooling and Runtime for Eclipse and OSGi

  3. Make sure Java8 is selected as the default JRE. installed_jres

  4. Create a new Eclipse 4 application project. new_e4_app_project

  5. Make sure you select Create sample content (parts, menu etc.). e4_sample_content

  6. The e4 application. e4-javafx
  7. Create a new class, FXMLController, with the following content: fxmlcontroller
  8. Create a new file, fxml/FXML.fxml, with the following content: fxml
  9. Create a new file, styles/fxml.css, with the following content: fxml-css
  10. Open SamplePart.java and replace its content with the following:
  11. Open META-INF/MANIFEST.MF and add org.eclipse.fx.javafx and org.eclipse.fx.osgi.util to Required Plug-ins. javafx_plugin_requirement
    e4fx_manifest.mf
  12. Open e4-javafx.product and add the following to the VM Arguments:
    -Dosgi.framework.extensions=org.eclipse.fx.osgi
    
    vm_launching
  13. Launch the application: launch_e4_fx_product
    running2
Share itShare on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn

2 thoughts on “Eclipse RCP e4 and JavaFX: minimal working example”

  1. I couldn’t find the “Eclipse 4 Application Project” under the “Eclipse 4” folder when I was in the step of “Select a wizard”. Could you please give me the specific version numbers of the Eclipse and the e(fx)clipse you use? And which OS do you use? Thanks.

    1. Hi Fred, this was done using Eclipse RCP Mars and e(fx)clipse version 2.2.0. Im running Linux Mint 17.3, which is based on Ubuntu Linux 14.04.

Leave a Reply

Your email address will not be published. Required fields are marked *