如何分发 JOGL 应用程序?

发布于 2024-09-13 07:20:17 字数 191 浏览 9 评论 0原文

我编写了一个应用程序,在我的机器上构建得很好,但是当我将其移动到另一台机器时,无法找到依赖的 JOGL 库。

是否可以创建一个构建来设置所有必需的 JOGL 文件,以便您可以使用必要的 JOGL 库分发 Java 应用程序?

如果有人能在 NetBeans 中解释这一点,我们也会很感激。

谢谢,

詹姆斯

I've written an application the builds fine on my machine but when I move it to another machine the dependent JOGL libraries cannot be found.

Is it possible to create a build that sets up all the required JOGL files so that you can distribute your Java application with the necessary JOGL libraries?

If someone could explain this in NetBeans that'd be appreciated too.

Thanks,

James

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

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

评论(5

腹黑女流氓 2024-09-20 07:20:18

您可以使用 Java Webstart 来部署使用 JOGL 的应用程序,解释如下:
http://jogamp.org/jogl/doc/deployment/JOGL-DEPLOYMENT.html

You can use Java Webstart to deploy an application using JOGL, it is explained here:
http://jogamp.org/jogl/doc/deployment/JOGL-DEPLOYMENT.html

墨落画卷 2024-09-20 07:20:18

如果需要,请查看我自己的 JNLP 文件:
http://tuer.sourceforge.net/tuer.jnlp

编辑:我现在使用 JNDT,它的效果好多了:)

Look at my own JNLP file if you want:
http://tuer.sourceforge.net/tuer.jnlp

Edit.: I use JNDT now, it works a lot better :)

樱娆 2024-09-20 07:20:17

我写了一篇关于如何为多个平台创建可再发行 JOGL 应用程序的教程。本教程使用 Eclipse 而不是 NetBeans,但原理应该是相同的。您可以使用该系统构建完全独立的 JOGL 应用程序,因此它们甚至不需要用户安装 Java。

该教程位于我的博客上 http://wadeawalker.wordpress.com/2010/10/24/tutorial-creating-native-binary-executables-for-multi-platform-java-apps -with-opengl-and-eclipse-rcp/

I wrote a tutorial about how to create redistributable JOGL apps for multiple platforms. The tutorial uses Eclipse instead of NetBeans, but the principles should be the same. You can use this system to build JOGL apps that are completely self-contained, so they don't even require the user to have Java installed.

The tutorial is on my blog at http://wadeawalker.wordpress.com/2010/10/24/tutorial-creating-native-binary-executables-for-multi-platform-java-apps-with-opengl-and-eclipse-rcp/.

熟人话多 2024-09-20 07:20:17

通常会发生这种情况,因为库位于您计算机上的某个位置,这是大多数教程建议您安装 JOGL 的方式。关键是在您的项目中添加 JOGL 库,并让项目使用这些库而不是您计算机上的库。然后您应该能够打包该应用程序。

请注意,因为 JOGL 绑定是平台相关的,这意味着(例如)如果您在 Mac 上编写此代码并尝试部署到 Windows,它将无法工作,因为本机调用不可用。

This usually happens because the libraries are located on your machine somewhere, which is the way that most tutorials recommend that you install JOGL. The key is to add the JOGL libraries inside your project, and point the project to use those rather than the libraries on your machine. You should then be able to package the application.

Note that because the JOGL bindings are platform-dependent, it means (for example) that if you wrote this on a Mac and try to deploy to Windows, it won't work because the native calls aren't available.

韶华倾负 2024-09-20 07:20:17

我们通常使用 Jnlp 分发基于 JOGL 的应用程序。这使得 JNLP 启动器的自动平台检测能够启动,并可以使用最新版本的 Jogl 库。如果您想了解如何制作适当的 JNLP,请查看 示例此页面为 NASA WorldWind。

We usually distribute our JOGL based applications using Jnlp. This allows the automatic platform detection from the JNLP Launcher to kick in as well as the use of recent versions of Jogl Libraries. If you would like to see how to craft a proper JNLP look at the samples on this page for NASA WorldWind.

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