editor does not contain a main type Maven專案
Eclipse 軟體Maven專案 解決:出現的 editor does not contain a main type
錯誤框 問題
當你執行 Java檔案是,如果彈出了下面的 錯誤框:
出現錯誤的原因: 當前的原始碼(所有的包)沒有被新增到build path中:(src路徑裡面是檔案目錄的樣子)
解決方法: 對著:src 路徑右鍵 -> Build Path -> Use as Source Folder
現在,src路徑 應該是下面這個樣子的:(不再是檔案目錄的樣子了,而是Java包的樣子)
搞定,現在在執行程式,eneditor does not contain a main type
錯誤框就不會在出現了。
相關文章
- Maven建立SSM專案 啟動時報錯Mapped Statements collection does not contain value for xxxMavenSSMAPPAI
- ‘map’ does not name a type
- error: 'cout' does not name a type|Error
- error: ‘xxx’ does not name a typeError
- PSQLexception: ERROR : type "signed" does not existSQLExceptionError
- does not name a type 的可能性
- error: ‘變數名‘ does not name a type|Error變數
- Dynamics CRM Plug-in assembly does not contain the required types or assembly content cannot be...AIUI
- mysql 5.7.21 CMake Error: The source directory "/data/server/mysql" does not appear to contain CMakMySqlErrorServerAPPAI
- Property 'context' does not exist on type 'NodeRequire'.ts(2339)ContextUI
- Qt 報錯 “類名”does not name a typeQT
- Maven 專案文件Maven
- Maven 專案模板Maven
- Maven教程(Eclipse配置及maven專案)MavenEclipse
- 解決java.lang.IllegalArgumentException: 'Content-Type' cannot contain wildcard type '*'異常(真實有效)...JavaExceptionAI
- Missing required icon file. The bundle does not contain an app icon for iPhone / iPod Touch of ex...UIAIAPPiPhone
- QT中error: xxx does not name a type xxx錯誤QTError
- Load balancer does not contain an instance for the service service-B [503] during [POST] 問題解決AI
- maven 專案轉化成 gradle 專案實踐MavenGradle
- Maven專案打jar包MavenJAR
- 建立Maven專案出錯Maven
- Maven 構建 Java 專案MavenJava
- Java Maven專案推送到 Maven 中央倉庫JavaMaven
- dcat-admin 表單 Field type [autocomplete] does not exist.
- 用maven建立專案及maven常用命令Maven
- Maven專案無法引入 Maven Dependencies Libraries 問題Maven
- IDEA搭建和部署Maven專案IdeaMaven
- 使用Maven構建Java專案MavenJava
- maven專案增加web.xmlMavenWebXML
- Maven中POM專案物件模型Maven物件模型
- java專案打包(maven+原生)JavaMaven
- maven 專案的建立入門Maven
- 在 Maven 專案中使用 HanLPMavenHanLP
- Jenkins in Action :GitLab 部署 Maven 專案JenkinsGitlabMaven
- Maven專案Spring Boot啟動MavenSpring Boot
- ORA-30012 undo tablespace 'UNDOTBS3' does not exist or of wrong typeS3
- eclipse :報錯 ‘XXXX‘ does not name a type的解決辦法Eclipse
- eclipse中maven專案不顯示Maven Dependencies依賴EclipseMaven