1

I'm trying to configuring JavaFX project in eclipse 2018-12 (4.10.0). I installed openJDK 10 and e(fx)clipse plugin.

I can create javaFX project no problem with that. But, when I tried to execute that project I got this error:

enter image description here

Any help please!

----- Edit -----

Error: JavaFX runtime components that are required to run this application are missing.
Imen
  • 161
  • 2
  • 14

2 Answers2

0

There is a thread pointing to the same issue as yours(OpenJDK 10) and for OpenJDK 11 this and this may be good pointers.

Clover
  • 507
  • 7
  • 22
0

JavaFX, as you may already know is no longer included in the JDK (this is to include OpenJDK as well). JavaFX's project website explains how to correctly add the JavaFX SDK (or jmods) and to configure them to work with Eclipse.

See here for the JavaFX getting started guide for Eclipse setup.

Their website goes into detail on the very error that you are receiving, and states how to resolve it. I will leave you with the link in case any of this changes in future releases.

JavaFX11: Missing module error

If you are trying to use JavaFX11 with JDK 10, I don't think that will be possible. See below from JavaFX (openjfx.io) website.

enter image description here

Dustin
  • 693
  • 8
  • 20
  • 1
    yes, I saw that and it works fine for openJDK 11 and openjfx 11. But, I need to use openJDK 10 (not 11) so I don't know how should I configure JavaFX with openJDK 10. – Imen Feb 06 '19 at 15:36
  • Apologies, didn't notice that you had said JDK 10. I have edited my original answer. – Dustin Feb 06 '19 at 15:43
  • Thank you, but it didn't solve the problem ! I tried to build javaFX project using openjdk 10 and openjfx 11. It works fine only If I'm using --module-path /javafx-sdk-11/lib --add modules=javafx.controls – Imen Feb 06 '19 at 16:23
  • Have you added the JavaFX jars to your eclipse project? – Dustin Feb 06 '19 at 17:19
  • yes I installed e(fx)clipse plugin into my eclipse and the jfxrt.jar is well added to my project and I have no problem when I build it. But when I try to execute it, I need to indicate the path of javafx sdk to my run configuration arguments – Imen Feb 07 '19 at 20:29