JavaShuo
欄目
標籤
解決報錯:editor does not contain a main type
時間 2021-01-02
標籤
editor does not contain a main
把文件夾轉換爲java包
欄目
Java
简体版
原文
原文鏈接
報錯過程 今天運行帶有main函數的java文件時,報錯:editor does not contain a main type 明明有main函數,但是爲什麼會報錯呢? 問題分析 逐一排查問題發現:原來java類沒有寫到src裏面的包裏,如下圖: 問題解決 方式一: 把java類移入src包下就行了 方式二: 有可能src不是包,而是一個文件夾(文件夾的圖標比包的圖標少一個「田」字)如下圖: 這
>>阅读原文<<
相關文章
1.
editor does not contain a main type
2.
editor does not contain a main type Maven項目
3.
Eclipse中Editor does not contain a main type 解決方法
4.
Editor does not contain a main type解決方案
5.
eclipse彈框提示editor does not contain a main type解決辦法
6.
Java使用Eclipse出現editor does not contain a main type解決
7.
eclipse 解決editor does not contain a main type的方法
8.
eclipse/myeclipse 解決editor does not contain a main type的方法
9.
editor does not contain a main type的解決方案
10.
eclipse 中 editor does not contain a main type錯誤
更多相關文章...
•
SVN 解決衝突
-
SVN 教程
•
ARP報文格式詳解
-
TCP/IP教程
•
Scala 中文亂碼解決
•
PHP Ajax 跨域問題最佳解決方案
相關標籤/搜索
contain
main
錯誤解決
editor
type
錯報
報錯
python 錯誤解決
Python 解決錯誤
解決ssl錯誤
Java
Spring教程
NoSQL教程
MyBatis教程
0
分享到微博
分享到微信
分享到QQ
每日一句
每一个你不满意的现在,都有一个你没有努力的曾经。
最新文章
1.
.Net core webapi2.1生成exe可執行文件
2.
查看dll信息工具-oleview
3.
c++初學者
4.
VM下載及安裝
5.
win10下如何安裝.NetFrame框架
6.
WIN10 安裝
7.
JAVA的環境配置
8.
idea全局配置maven
9.
vue項目啓動
10.
SVN使用-Can't remove directoryXXXX,目錄不是空的,項目報錯,有紅叉
本站公眾號
歡迎關注本站公眾號,獲取更多信息
相關文章
1.
editor does not contain a main type
2.
editor does not contain a main type Maven項目
3.
Eclipse中Editor does not contain a main type 解決方法
4.
Editor does not contain a main type解決方案
5.
eclipse彈框提示editor does not contain a main type解決辦法
6.
Java使用Eclipse出現editor does not contain a main type解決
7.
eclipse 解決editor does not contain a main type的方法
8.
eclipse/myeclipse 解決editor does not contain a main type的方法
9.
editor does not contain a main type的解決方案
10.
eclipse 中 editor does not contain a main type錯誤
>>更多相關文章<<