intelliJ上启动层javaFX初始化期间出错
模块信息的代码为:intelliJ上启动层javaFX初始化期间出错,java,intellij-idea,javafx,fxml,Java,Intellij Idea,Javafx,Fxml,模块信息的代码为: module Schoolsys { requires javafx.graphics; requires javafx.fxml; requires javafx.controls; //requires java.sql; opens sample; } 我的虚拟机是--模块路径“C:\Program Files\Java\javafx-sdk-11.0.2\lib”--添加模块javafx.controls,javafx.fx
module Schoolsys {
requires javafx.graphics;
requires javafx.fxml;
requires javafx.controls;
//requires java.sql;
opens sample;
}
我的虚拟机是--模块路径“C:\Program Files\Java\javafx-sdk-11.0.2\lib”--添加模块javafx.controls,javafx.fxml
错误是
Error occurred during initialization of boot layer
java.lang.module.FindException: Module Schoolsys not found
Schoolsys是我的项目名
我试着把文件放在src文件夹内外,但仍然不起作用。如何解决此问题?首先严格遵循基本设置教程(f.I.at)-只有在看到示例编译和运行时没有错误后,才能开始自己的项目(f.I.通过修改示例)-无法了解详细情况。请注意,像将文件放在src文件夹内外这样的随机实验显然会导致失败。@kleopatra我确实遵循了教程,但仍然得到了错误。你是说该页面上的示例按预期工作吗?如果是这样的话,开始一小步修改它,直到它满足您的需要:)