当前位置:
代码迷
>>
Eclipse
>> !生成Jar时报could not find the mian class 的错是咋回事啊
详细解决方案
!生成Jar时报could not find the mian class 的错是咋回事啊
热度:
38
发布时间:
2016-04-23 14:18:34.0
求助!生成Jar时报could not find the mian class 的错是怎么回事啊?
我用那个SWT做了个简单界面,可是在eclipse生成Jar文件后,双击它就报上述错误,但是那些没用SWT时能正常运行!请帮帮忙解快一下这个情况!
------解决方案--------------------
那是系统没找到你的MAIN方法哇~
所以不能调用呢
------解决方案--------------------
在Jar包的MANIFST.MF文件中加入
Main-Class: [包名].[包含Main方法的类名]
查看全文
相关解决方案
!使用JDNI时,报 Cannot create JDBC driver of class '' for connect URL 'null'
新手Dialect class not found
Could not find a getter for name in class解决方法
Could not load JDBC driver class 咋回事
Cannot load JDBC driver class 'com.microsoft.jdbc.sqlserver.SQLServerDriver'解决方法
初学急求(待高手指导)java.lang.InstantiationException: Class not a MIDlet?已经写了MIDlet类,如何修改
用eclipse打包jar后运行,弹出异常could not find main class
eclipse class not found 愁死了解决方法
class.formName获取的种能做List的泛型类么
There is no WRITEABLE property named 'outboxsize' in class 咋回事
报错“需要.class”!新手、求高手给解!该如何解决
Sub Class 与 Child Class的差异
有人用过zeroMQ吗?一直揭示C:\Program Files\Java\jre6\bin\jzmq.dll: Can't find dependent li
Netbeans 7.0 生成的jar运作总是找不到main class
请问,这样定义一个变量,是啥意思?Class<> waiClass
关于xxxxx.class.getClassLoader().getResource(fileName),
vs 2005 对一个新键Dialog的没法使用Add Class,不知道说明原因
怎么遍历dictionary<enum,class>输出
请教下public abstract class SqlHelper抽象类下,为什么能写public static int ExecuteNonQuery()方
NHibernate in expected: <end-of-text> (possibly an invalid or unmapped class name was used in the q,该如何处理
unable to find a version of the runtime to run this application解决办法
list<class>作为gridview数据源时怎么让gridview的首列数据以链接的形式显示呢
class Core<T> where T : class, new() 求解~ 多谢
class b:a 是什么意思啊解决方法
“public partial class Default2 : System.Web.UI.Page”中的Page变墨色
|M| 幕白兄 小弟我那个DLL中的 public sealed class SqlHelper 这里面怎么来调用他的事务处理最科学 多谢
关于<table class="Text">
CodeSmith for Nhibernate的有关问题:它是怎么实现NHibernate.cst这个模板文件中引用NHibernate.class.cst这个模板中的代码的
|M| 怎么让小弟我的类:public class MyPage: System.Web.UI.Page 在用户控件中可以引用
|M| public abstract class mycn 里面的abstract是什么意思,什么时候要用到这个,该如何解决