当前位置:
代码迷
>>
J2SE
>> 简单程序run后出现selection does not contain a main type异常
详细解决方案
简单程序run后出现selection does not contain a main type异常
热度:
157
发布时间:
2016-04-24 01:41:50.0
简单程序run后出现selection does not contain a main type错误
程序有main函数,在Eclipse中运行后出现selection does not contain a main type错误,环境配置是正确的
------解决方案--------------------
唯一解释,楼主直接按的顶部的运行按钮,而那个默认又不是当前的类。
请参照1楼的做法,现在左侧树状目录中选中你的这个类。千万别选错了!!
鼠标右键然后选择run as java application
相关解决方案
新手,请问input type=text有关问题
不走"<script type='text/javascript'>"标签咋回事
input type=text 替空时 ,为什么不为null
<script type="javascript/text">的有关问题
unsupported content type in editor解决思路
用eclipse打包jar后运行,弹出异常could not find main class
怎样用android重写j2me,player里的createPlayer(InputStream stream, String type)解决方案
<input type="file" name="filename">该如何处理
main()函数个数,该如何解决
<input type="file" name="filename">解决方法
请教哪里有 MDF (Main Distribution Frame) 的接线教程
main()方法引用成员变量的有关问题
vc++.net中的有关问题( error C2440: 'type cast' : cannot convert from 'CString' to 'const char *')
main(int, char* argv[]) 跟 main(int, wchar* argv[])
Cannot marshal 'return value' Invalid managed/unmanaged type combination.解决思路
水晶报表-Exception of type 'System.OutOfMemoryException' was thrown.解决思路
水晶表格-Exception of type 'System.OutOfMemoryException' was thrown
水晶表格-Exception of type 'System.OutOfMemoryException' was thrown
自定义控件,怎么输出<input type="hidden" />的input
input type="file" 下传文件有关问题
在网页下实现播放图片的功能。但是这个功能的间隔的时间在哪里设置.main.js里面么
请问怎么限制<input type="text">的最小和最大值
asp.net 点击<input type="image" src="del.gif" /> 为什么会刷新页面!解决方法
input type="radio"圆圈大小如何控制呢
<input type="radio" id="rbtnSing" runat="server"后台取值有关问题
asp.net 中怎样实现 <input type="reset" 。这样的。解决办法
让.aspx页面里没有<input type="hidden" name="VIEWSTATE" id="VIEWSTATE"该怎么处理
100分,求不用<input type="file"/>上传图片方法,该怎么处理
去掉.net页面中的<input type="hidden" name="VIEWSTATE" id="VIEWSTATE"该怎么解决
<input type="date" runat="server">为什么会出错呢?该怎么解决