[英]Gradle Recurring Module Not Found / Could not find or load main class error in Java 9+
[英]How to find the name of a module of a class in Java 9+?
我尝试从 JavaFX 8 迁移到 9+。
如何找到为现有类命名的模块?
这是我的问题的示例:
很难发现javax.smartcardio
必须使用模块名称java.smartcardio
。 是查找模块名称的查找表吗? Intelij Idea 无法即时找到它。
module xyz {
// import javax.smartcardio.*;
requires transitive java.smartcardio;
// import javax.swing.*;
requires transitive java.desktop;
}
有没有简单的方法来解决这个问题?
可以使用在线javadoc的搜索功能: https : //docs.oracle.com/en/java/javase/11/docs/api/index.html
要按名称查找包:
然后在包的 javadoc 页面上,它所在的模块位于左上角:
(请注意,模块名称也会显示在搜索自动完成对话框中)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.