当前位置:
代码迷
>>
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方法的类名]
查看全文
相关解决方案
Class not found: com.mchange.v2.c3p0.ComboPooledDataSource,该怎么处理
org.apache.jasper.JasperException: Unable to compile class for JSP:该怎么解决
org.apache.jasper.JasperException: Unable to compile class for JSP:解决思路
!使用JDNI时,报 Cannot create JDBC driver of class '' for connect URL 'null'
Unable to load class for JSP,该如何处理
新手Dialect class not found
国庆快活~ getHibernateTemplate().find 按时间最大查询
警告: Could not find action or result 什么原因?该如何解决
this.getHibernateTemplate().find()有关问题
Caused by: org.hibernate.MappingException: Association references un地图ped class: com.elone.pm.product.dao.TAttribute
cas客户端有关问题(unable to find valid certification path to requested target)
Error creating bean with name 'sessionFactory' defined in class path resource解决方法
Unable to compile class for JSP找不出异常
struts2 文件上载有关问题 Can not find a java.io.InputStream with the name [downloadFile]
Could not find a getter for name in class解决方法
Could not load JDBC driver class 咋回事
No setter found for property 'sessionFactoroy' in class 'com.iBBS.dao.impl.UserI解决思路
getHibernateTemplate().get(entity.Class,serializabel id) 如何报java.lang.NullPointerException的错误
小弟我在tomcat里的Server.xml部署web项目报Error instantiating servlet class
Jsp + Oracle 怎么取回id,报错getInt not implemented for class oracle.jdbc.driver.T4CRo
关于Cannot find bean under name 的错误
Cannot find any information on property 'cipher' in a bean of type 'xx.JiamiBean解决思路
ssh项目hibernate 异常:org.hibernate.MappingException: Association references unmapped class: Message
java.lang.NoClassDefFoundError: Could not initialize class cn.elvis.utils.JdbcUt,该如何处理
Cannot load JDBC driver class 'com.microsoft.jdbc.sqlserver.SQLServerDriver'解决方法
class path resource [applicationContext.xml] does not exist解决方法
请问:org.apache.jasper.JasperException: Cannot find any information on property 'userPhone' in a bean of type 'Bean.Sender'
ids for this class must be manually assigned before calling save(): po.Project解决方法
could not find jar tool executable.该如何解决