使用Eclipse 12/2018,在Win8.1机器上,我生成javadocs时没有任何问题,也就是说,如果项目中没有module-info.java文件。使用module-info.java创建项目时,出现以下错误:|
Loading source file [my home directory]\eclipse-workspace\ChispaJar\src\module-info.java...
[my home directory]\eclipse-workspace\ChispaJar\src\module-info.java:13: error: module not found: javafx.base
requires javafx.base;
^
[my home directory]\eclipse-workspace\ChispaJar\src\module-info.java:14: error: module not found: javafx.controls
requires javafx.controls;
^
[my home directory]\eclipse-workspace\ChispaJar\src\module-info.java:15: error: module not found: javafx.graphics
requires javafx.graphics;
^
[my home directory]\eclipse-workspace\ChispaJar\src\module-info.java:16: error: module not found: javafx.media
requires javafx.media;
^
[my home directory]\eclipse-workspace\ChispaJar\src\module-info.java:18: error: module not found: JmeJar
requires JmeJar;
^
5 errors
module-info.java看起来像这样:
module ChispaJar {
exports chispa;
exports sai;
requires java.sql;
requires javafx.base;
requires javafx.controls;
requires javafx.graphics;
requires javafx.media;
requires java.desktop;
requires JmeJar;
}
有人可以告诉我我在做什么错吗?