no main manifest attribute
来源:互联网 发布:英文域名有哪些 编辑:程序博客网 时间:2024/06/05 17:45
在Eclipse导出jar包时,如下操作也可以
第一、在export jar导出向导的jar file specification对话框下,选中export all output folders for check projects。如下图:
<pre id="best-content-1165425420" class="best-text mb-10" name="code" style="white-space: pre-wrap; word-wrap: break-word; margin-top: 0px; margin-bottom: 10px; padding: 0px; font-family: arial, 'courier new', courier, 宋体, monospace, 'Microsoft YaHei';"><img src="http://img.blog.csdn.net/20150625145045068?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvZG9uZ3NoZW5nMTg2/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center" alt="" style="border: none; max-width: 100%;" />
第二、在向导中,下一步到在jar manifest specification对话框下,在你main class输入框中选中你的入口class。如下图
<img src="http://img.blog.csdn.net/20150625145221441?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvZG9uZ3NoZW5nMTg2/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center" alt="" style="border: none; max-width: 100%;" />
</pre><pre id="best-content-1165425420" class="best-text mb-10" name="code" style="white-space: pre-wrap; word-wrap: break-word; color: rgb(51, 51, 51); font-size: 14px; line-height: 24px; margin-top: 0px; margin-bottom: 10px; padding: 0px; font-family: arial, 'courier new', courier, 宋体, monospace, 'Microsoft YaHei'; background-color: rgb(243, 255, 236);"><div><img src="file:///C:/Users/Administrator/AppData/Roaming/Tencent/Users/2977796583/QQ/WinTemp/RichOle/92A9$0(%7DX9VZKHZ%7BMP0JZ7A.jpg" alt="" style="border: none; max-width: 100%;" /></div>然后,finish,得到的jar文件就可以在java虚拟机中通过java -jar ***.jar命令执行了。
0 0
- no main manifest attribute
- 报错:No main manifest attribute
- Can't execute jar- file: “no main manifest attribute”
- Linux系统下运行jar文件,提示:No main manifest attribute, in XXX.jar
- Linux系统下运行jar文件,提示:No main manifest attribute, in XXX.jar
- Failed to load Main-Class manifest attribute from logTjOutputUtil.jar
- Failed to load Main-Class manifest attribute from
- Missing required Permissions manifest attribute in main jar的解决办法
- Failed to load Main-Class manifest attribute from
- Failed to load Main-Class manifest attribute from ....
- Failed to load Main-Class manifest attribute from
- applet Missing Permissions manifest attribute in main jar
- openerp.cli.main() AttributeError: 'module' object has no attribute 'cli'
- jar文件运行时:Failed to load Main-Class manifest attribute from ......解决办法
- jar文件运行时:Failed to load Main-Class manifest attribute from ......解决办法
- jar文件运行时:Failed to load Main-Class manifest attribute from ......
- 运行jar 提示 Failed to load Main-Class manifest attribute from
- jar文件运行时:Failed to load Main-Class manifest attribute from
- leetcode-21Merge Two Sorted Lists
- Cortex_m3的启动过程
- 理解Hibernate
- eclipse jrebel安装
- 使用 Strace 和 GDB 调试工具的乐趣
- no main manifest attribute
- 2440 nand flash和nor flash上启动
- interface接口
- 优化数据页面(15)——表题应当准确精练
- 如何在 Ubuntu 中检查笔记本 CPU 的温度
- 自助Linux之问题诊断工具strace
- OpenGL 第一个三角形
- Cocos2dx------详细介绍如何编写扫雷这个游戏含源码(二)
- Android 安全——Java环境动态加载Jar之Jar包的加密和解密