"editor does not cintain a main type"为什么啊。是在eclipse下载运行的

Posted by Zen on 9 August 2011 & 56,670 visits
About the author:
Creator of zenverse.net. I blog about stuffs that I am interested in, from Web Design & Development to Wordpress themes and tips, SEO, Creative inspirations, Google, Programming, Mac OS and Android OS. I make
too. You can follow me on Twitter
or . I recommend
<a href="/home?status=How+to+Fix+%22Editor+does+not+contain+a+main+type%22+Error+in+Eclipse+-+
Thank you. In Eclipse I had copied some old files into a new project, but until I read your explanation, I had not realized that I had not copied the .java files INTO the src folder. They were under it, but not in it.
Thanks for a very clear explanation of what I was doing wrong.
But still i am getting the same error. Can u pls help me to fix this error.
That worked for me. It was driving me buts because I copied a small program that worked in order to play around with some changes.
Ye effings gods, I have NO problem with hideously complex programs but I freaking HATE bureocracy. Why in the effing ell con&#8217;t someone design an environment with simple to understand bureocracy? Why the effing ell would someone create an environment so that when you created a project from scratch you would have to change file locations manually.
Effing ell.
I am in tears of joy. Nowhere could I find the solution. Thousands of shit posts on forums and no joy. Thank you so much. I love you.
Great! Step 2 rly worked 4 me. Thanks!
Leave a Reply
You must be
to post a comment.
Previous Post
Hey there, welcome to ZenVerse Blog!
I blog about stuffs that I am interested in, from Web Design & Development to WordPress Themes & Tips, SEO, Creative Inspirations, Google, Mac OS and Android OS.
While my online working environment is focused mainly on Wordpress, I make ,
and . Besides, I give out
to the readers.
Spread The Love
Subscribe to Our RSS feed
& Subscribe to
& Subscribe to
Bookmark This Page
Categories
: Mantap , Luar Biasa (Indonesia word for extra ordinary :)
: Sorry, our site has been hacked. We are fixing our site....
: Sorry bro.. But it seems none of the download links are work...
: I am unable to download this theme. The download link is bro...
: That worked for me as well.
Thanks much.
I was going to st...
: Thanks! I really appreciate the code. I was trying to figure...
: Thank you for sharing your expertise....
: i've been trying to delete some undeletable files FOREVER an...
: I just love checking out your writing, you have the greatest...
: I tried doing this and my problem about this is that the fil...
Recent Posts
Check this out
SWAGCT is a society of interesting, funny and cool content. Like us on Facebook!eclipse:selection does not contain a main type?_百度知道
eclipse:selection does not contain a main type?
}}run as java application。,然后它提示selection does not contain a main type我刚刚开始自学JAVA遇到的第一个问题。。= =用eclipse。这是为什么呢.Hello world。,代码如下。; )!&quot。。。,public class Hello{ public static void main ( String[] args ) {
System.println( &quot
没有我的那个main。好奇怪。.com/question/?si=2" target="_blank">http。已参考贴<a href="http。.baidu。,发现search中为空.com/question/?si=2但是按照TA的提示操作.html.html.baidu://zhidao://zhidao
提问者采纳
main不能设成方法名,你换一个名字
提问者评价
解决了。。。但其实这不是正确答案,不过感谢你的关注。。。
其他类似问题
为您推荐:
您可能关注的推广
eclipse的相关知识
其他1条回答
你怎么解决的啊?我的也是出现这样的错误
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁3389人阅读
java(11)
使用eclipse运行带有main函数的Java文件时,出现editor does not contain a main type的错误框
&&&&&&& 今天从SVN上更新了一下程序,使用用eclipse时,打算运行带有main函数的Java文件时,却
出现editor does not contain a main type的错误框。于是问了一下度娘,问题迅速得到了解决:原
来这个class所在包没有被添加到build path中。
&&&&&&& 解决方法:在左侧的package explorer中右击这个class所在包的上一级目录
--build path--use as source folder。这样就解决问题了。重新打开class,再run一下,ok了。
参考知识库
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:36146次
排名:千里之外
原创:16篇
转载:34篇
(2)(2)(8)(8)(1)(8)(7)(5)(4)(3)(2)(1)Editor does not contain a main type_百度知道
Editor does not contain a main type
scorel[3][1]=33;&
scorel[1][0]=31;
for(int i=0;scorel[i];i++)
for(int j=0;);t&&#92;scorel。;);j++)
System.length.print(scorel[i][j]+&quot.
scorel[2][2]=32.out.println(&quot!; }}这里运行显示Editor does not
scorel[1][1]=30public class yes { public static void main(String[] args) {
int scorel[][]=new int[4][3]。请问哪出问题里;j&
scorel[0][1]=30
是java eclipse
提问者采纳
scorel[2][2]=32; } }}结果.print(scorel[i][j]+&quot.
scorel[3][1]=33,运行没什么问题;
for(int i=0;j&j++)
S),没有你出现的问题public class yes { public static void main(String[] args) {
int scorel[][]=new int[4][3].&i&i++)
for(int j=0.out.println(&);scorel[i];&#92;t&quot.
scorel[0][1]=30;
scorel[1][1]=30;
scorel[1][0]=31就是最后少了个括号
你是新建的 java project 这个吗?
奇怪我用的点播放那个图,- -就出现Editor does not contain a main type
在代码的地方,右键,选择run as-&java application
for(int i=0;i&scorel.i++)
[这里的scorel.length是显示哪个数]
for(int j=0;j&scorel[i].j++)[这里的scorel[i].length是显示上面那for的i?]
其他类似问题
为您推荐:
其他3条回答
代码除了最后少个大括号 没什么问题
你看一下你 java project是否有名字。应该在代码最前面加上:
就可以了。
你把你在eclipse中写的yes放在工程名称下的src文件夹中
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁}

我要回帖

更多关于 eclipse 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信