6

我正在尝试部署一个非常基本的 JavaFX 应用程序。我只是在创建一个新的 JavaFX 项目并尝试将其部署到 .exe,但它给了我一个找不到模块的错误。

这是控制台日志:

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

我正在使用 jdk11.0.4、JavaFX-11.0.2、eclipse 4.12.0 和 e(fx)clipse 3.5

4

0 回答 0