如何导出小程序以及引用的库

发布于 2024-11-13 07:57:58 字数 91 浏览 2 评论 0原文

我想要一个独立的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技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

于我来说 2024-11-20 07:57:58

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文