I'm trying to deploy a very basic JavaFX application. I'm just creating a new JavaFX project and trying to deploy it to .exe but it gives me a module not found error.
This is the console log:
Buildfile: D:\eclipseProjects\Test\build\build.xml
setup-staging-area:
[delete] Deleting directory D:\eclipseProjects\Test\build\externalLibs
[delete] Deleting directory D:\eclipseProjects\Test\build\project
[delete] Deleting directory D:\eclipseProjects\Test\build\projectRefs
[mkdir] Created dir: D:\eclipseProjects\Test\build\externalLibs
[copy] Copying 1 file to D:\eclipseProjects\Test\build\externalLibs
[copy] Copying 1 file to D:\eclipseProjects\Test\build\externalLibs
[copy] Copying 1 file to D:\eclipseProjects\Test\build\externalLibs
[copy] Copying 1 file to D:\eclipseProjects\Test\build\externalLibs
[copy] Copying 1 file to D:\eclipseProjects\Test\build\externalLibs
[copy] Copying 1 file to D:\eclipseProjects\Test\build\externalLibs
[copy] Copying 1 file to D:\eclipseProjects\Test\build\externalLibs
[copy] Copying 1 file to D:\eclipseProjects\Test\build\externalLibs
[mkdir] Created dir: D:\eclipseProjects\Test\build\project
[copy] Copying 5 files to D:\eclipseProjects\Test\build\project
[mkdir] Created dir: D:\eclipseProjects\Test\build\projectRefs
do-compile:
[delete] Deleting directory D:\eclipseProjects\Test\build\build
[mkdir] Created dir: D:\eclipseProjects\Test\build\build\src
[mkdir] Created dir: D:\eclipseProjects\Test\build\build\libs
[mkdir] Created dir: D:\eclipseProjects\Test\build\build\classes
[copy] Copying 8 files to D:\eclipseProjects\Test\build\build\libs
[copy] Copying 5 files to D:\eclipseProjects\Test\build\build\src
[javac] Compiling 3 source files to D:\eclipseProjects\Test\build\build\classes
[javac] D:\eclipseProjects\Test\build\build\src\module-info.java:2: error: module not found: javafx.fxml
[javac] requires javafx.fxml;
[javac] ^
[javac] D:\eclipseProjects\Test\build\build\src\module-info.java:3: error: module not found: javafx.graphics
[javac] requires javafx.graphics;
[javac] ^
[javac] 2 errors
BUILD FAILED
D:\eclipseProjects\Test\build\build.xml:101: Compile failed; see the compiler error output for details.
Total time: 2 seconds
I'm using jdk11.0.4, JavaFX-11.0.2, eclipse 4.12.0 with e(fx)clipse 3.5