[英]Java 10 Eclipse + Maven "java.lang.module.FindException: Module myproject not found"
我在 Eclipse 4.7.3a 中創建了一個新的 Java 10 項目
這是一個帶有一些依賴項的 maven 項目。
該項目稱為“MyProject”,下面是我的模塊信息。java
module myproject {
exports myproject;
requires commons.logging;
requires htmlunit;
requires htmlunit.cssparser;
requires java.logging;
requires java.xml;
requires selenium.api;
requires selenium.firefox.driver;
requires selenium.remote.driver;
}
當我運行項目時,我得到以下信息
Error occurred during initialization of boot layer
java.lang.module.FindException: Module myproject not found
我在這里做錯了什么?
4.7.3a中的Maven集成不支持啟動模塊化應用程序(請參閱https://bugs.eclipse.org/bugs/show_bug.cgi?id=529398 )
已針對將於六月發布的Eclipse 4.8(Photon)實現了此功能。
您已經可以從http://download.eclipse.org/eclipse/downloads/使用(功能完整的)里程碑構建。 如果發現任何錯誤,請通過https://bugs.eclipse.org/bugs/報告。
做自動化瀏覽器時同樣的問題和同樣的錯誤,只需刪除或刪除模塊信息文件,它就會解決
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.