运行 JNLP 文件时某些库不起作用
当我从 Netbeans 运行 Java EE 项目时,一切正常,但是当我将其部署在 Glassfish 服务器中并运行下载的 JNLP 文件时,某些添加的库不起作用。
有什么想法吗?
Everything works in my Java EE project when I'm running it from Netbeans, but when I deploy it in Glassfish server and run downloaded JNLP file, some added libraries don't work.
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的程序所需的任何不属于标准 Java SE 发行版的库都必须在 JNLP 文件中引用。 JNLP 文件的一部分可能是:
由于 mail.jar 和activation.jar 包含在 Java EE 中,因此在 netbeans 中运行 Java EE 项目时,您的库中不需要这些。
在您的首选项中打开 Java 控制台。在 Windows 中,您可以通过控制面板执行此操作 - 该选项位于 Java 控制面板中。当程序中的某些功能无法工作时,您可能会在输出窗口中看到特定的错误消息。这可能会帮助您确定需要包含哪些 jar 库。
Any library that your program needs that is not part of the standard Java SE distribution must be referenced in the JNLP file. Part of your JNLP file might be:
Since mail.jar and activation.jar are included with Java EE, you would not need these in your library when running a Java EE project in netbeans.
Turn on the Java Console in your preferences. In Windows, you can do this through the Control Panel - the option is found in the Java Control Panel. When some function in your program fails to work, you will probably see a specific error message in the output window. This might help you determine which jar libraries you need to include.