如何导出小程序以及引用的库
我想要一个独立的java小程序,但我无法将它与使用的库一起导出,因为没有主要方法,我无法导出可运行的JAR,所以我只剩下导出JAR。 忘了说我正在使用 ECLIPSE。
I want a standalone java applet, but I'm unable to export it together with the used libraries, as there is no main method I cannot export a Runnable JAR, so I'm left with Export JAR.
Forgot to mention I'm using ECLIPSE.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Fat jar eclipse 插件可以做到这一点:
在此处获取它。
然而,导出可运行 jar 功能可能会起作用,它只会显示有关缺少 main 的警告,但由于您在 html 中指定了它,所以应该没问题。此外,由 fat jar 或可运行导出生成的 jar 具有完全相同的文件架构(实际上可运行导出是 fat jar),因此可能值得一试。
The Fat jar eclipse plugin can do that:
get it here .
However the export runnable jar functionnality might work, it only shows up a warning about the lack of main but since you specify it in the html it should be ok. Moreover a jar generated by fat jar or the runnable export have the exact same architecture of files (in fact the runnable export IS fat jar) so it may be worth a try.