当前位置: 代码迷 >> Java相关 >> 求助,生成jar后could not find the main class
  详细解决方案

求助,生成jar后could not find the main class

热度:465   发布时间:2007-12-19 00:27:11.0
求助,生成jar后could not find the main class
我写了一个记事本程序,在eclipse可以正常运行

但是打包成jar之后就不能运行了,说could not find the main class

该java文件编译后生成4个class文件, 但是只有TextFrame.class一个有main函数,

我的mf文件写成这样 Main-Class: TextFrame(后面还有两空行)

希望哪位大哥可以帮我看一下是什么原因吧!! 谢谢了`
搜索更多相关的解决方案: jar  main  find  class  not  

----------------解决方案--------------------------------------------------------
  相关解决方案