module-info的代码是:
module Schoolsys {
requires javafx.graphics;
requires javafx.fxml;
requires javafx.controls;
//requires java.sql;
opens sample;
}
我的VM是--module-path "C:\Program Files\Java\javafx-sdk-11.0.2\lib" --add-modules javafx.controls,javafx.fxml
错误是
Error occurred during initialization of boot layer
java.lang.module.FindException: Module Schoolsys not found
Schoolsys是我的项目名称。
我尝试将文件放在src文件夹的内部和外部,但仍然无法正常工作。我该如何解决?