jar 文件构建
我的程序在 NetBean 下运行良好。所以我尝试构建一个jar文件。我使用项目属性设置了所有内容,并通过“浏览主类”选择了主类,这样我就不会犯任何打字错误。一切看起来都很好,并且生成了一个 jar 文件。但是 jar 文件在显示 SlashScreen 后就无法运行。程序一直说没有主类,但它就在类中!我检查了 MANIFEST.MF 文件,Main-Class 也设置在那里。这真的让我很困惑。这里可能出了什么问题?
谢谢。
My program runs fine under NetBean. So I tried to build a jar file. I set everything up with project properties and picked the Main class by "browsing the Main class" so that I do not make any typing mistakes. Everything seems fine and a jar file is generated. But the jar file just could not run after showing the SlashScreen. The program keeps saying there is no main class but it is right there in the class! I checked the MANIFEST.MF file, Main-Class is set just right there too. It really confused me. What could be wrong here?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论