加入收藏 | 设为首页 | 会员中心 | 我要投稿 北几岛 (https://www.beijidao.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 大数据 > 正文

Editor does not contain a main type错误提示,怎么解决?

发布时间:2021-07-06 05:52:08 所属栏目:大数据 来源: https://blog.csdn.net/guo1331
导读:I am trying to run some java files in a new project.So I make the project,put the files in it and I try to RUN the main file so my error problems happened!!! Thanks for the stack overflow. the Answer: Right click on the folder where you pu



I am trying to run some java files in a new project.So I make the project,put the files in it and I try to RUN the main file so my error problems happened!!!

Thanks for the stack overflow.


the Answer: Right click on the folder where you put your main class then click on Build Path--> Use as Source Folder.

It worked!!!

OR-->

right click on the package->properties->Java Build Path->Add folder(select the folder your code reside in)

Do work either!!!

好累啊!!!

错误:找不到或无法加载主类。

解决办法:右键工程文件夹-->Build Path-->Use as Source Folder 就解决了。

完美运行!





(编辑:北几岛)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读