使用 JOGL 应用程序部署 Java 的最佳方法是什么(特别是对于 Windows 7 64 位)?
我有一个想要分发的 JOGL 应用程序。在 Linux 或 Mac 上没有问题(除了 -version:1.6 似乎不适用于 Linux 或 Mac)。然而,在Windows 7 64位上,我看到了许多不同的Java配置。我需要 Java 1.6,如果计算机是 64 位,那么它必须是 64 位版本,因为 JOGL 本机二进制文件。
那么,使用 JOGL 应用程序部署 Java 的最佳方法是什么?我的许多客户没有可靠的互联网接入,因此网络部署对我不起作用。
我尝试过的:
我使用 NSIS 创建了一个安装程序,可以找到 1.6 64 位 Java。问题是,安装可能会改变。所以我相信我应该制作一个启动器来检测启动时的位置。到目前为止,在我检查过的 5 台计算机中,有 2 台依靠正确设置的路径不起作用。
I have a JOGL application that I want to distribute. No problems in Linux or Mac (other than -version:1.6 doesn't seem to work on Linux or Mac). However, on Windows 7 64 bit, I have seen many different configurations of Java. I need Java 1.6 and it must be the 64 bit version if the computer is 64 bits because of the JOGL native binaries.
So, what is the best way to deploy a Java with JOGL application? Many of my customers do not have reliable internet access so the web deployments do not work for me.
What I have tried:
I have created an installer with NSIS that can find the 1.6 64 bit Java. The problem is, the installation may change. So I believe I should make a launcher that detects the location on startup. Relying on the path to be set up properly hasn't worked in 2 out of 5 computers I have checked so far.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
查看有关“jogl-deployment”的帮助程序: http://jogamp.org/ jogl/doc/deployment/JOGL-DEPLOYMENT.html
(涵盖 jws-jnlp、按平台划分的库等)
仅供参考:只要您仍然想要更多,经过几次尝试后,神奇的谷歌查询inst-yeilded 这个帮助页面是: jogl jar 与本机库
如果您的问题没有得到解答,请浏览其他 1 个页面: http://kenai.com/projects/jogl/pages/FAQ
check out this helper on "jogl-deployment": http://jogamp.org/jogl/doc/deployment/JOGL-DEPLOYMENT.html
(covers jws-jnlp, libraries by platform, etc)
FYI: in-so-far as you still want more, after a few tries, the magic google query that inst-yeilded this helper page was: jogl jar with native libraries
1 other to skim if your question not answered: http://kenai.com/projects/jogl/pages/FAQ