Eclipse环境开发java:Selection does not contain a main type
来源:互联网 发布:ddos攻击某个端口 编辑:程序博客网 时间:2024/05/17 02:20
第一次使用Eclipse环境写java
新建了一个工程,输入以下代码
public class Welcome {
public static void main()
{
String[] greeting = new String[3];
greeting[0] = "Welcome to Core Java";
greeting[1] = "by Cay Horstmann";
greeting[2] = "and Gary Cornell";
for(String g : greeting)
System.out.print(g);
}
}
运行的时候选择Java Application
错误框提示:Selection does not contain a main type
怎么回事??
经过在网上查资料之后发现:
程序的main参数应该是String[] args
而不是String args
- Eclipse环境开发java:Selection does not contain a main type
- eclipse selection does not contain a main type
- win7 eclipse: selection does not contain a main type
- Eclipse报错 "Selection does not contain a main Type"
- selection does not contain a main type
- selection does not contain a main type
- selection does not contain a main type
- selection does not contain a main type
- Eclipse中出现Editor does not contain a main type或者Selection does not contain a main type
- selection does not contain a main type错误
- selection does not contain a main type的解决方案!
- selection does not contain a main type错误
- selection does not contain a main type错误
- selection does not contain a main type错误
- java" selection does not contain a main type"的问题处理方法
- selection dose not contain a main type
- Eclipse中运行出现selection does not contain a main type错误
- eclipse的editor does not contain a main type错误
- AsyncTask,Handler,Looper,MessageQueue
- 深入浅出MFC笔记3-MFC程序的消息流转
- 【cocos2d-x】 之 模态对话框
- sql server如何求前N列的和(具体几列未知) 右侧汇总
- MFC在VS2008中为ActiveX控件添加属性 .
- Eclipse环境开发java:Selection does not contain a main type
- 终于搞定android驱动USB摄像头了!
- linux下消息队列小例子
- ServletMapping的处理
- 获取上一页面的URL和本页的URL
- MFC在VS2008中开发ActiveX控件,运行时自带的容器在哪? .
- 搭建XMPP协议,实现自主推送消息到手机
- SQLServer 解析JSON字符串
- 正则表达式30分钟入门教程