JNLP 和 JavaFX 之间的区别

发布于 2024-08-04 23:23:47 字数 101 浏览 4 评论 0原文

JavaFX 提供了“拖动安装”功能,只需将它们拖出浏览器即可 - 然后您可以直接从桌面重新启动应用程序。它与JNLP有何不同?或者在通过网络分发内容方面它比 JNLP 有多容易或有优势?

JavaFX provides a feature Drag-to-Install simply by dragging them out of your browser - you can then relaunch the applications directly from your desktop. How different is it different from JNLP? Or how easy or advantageous it is over JNLP in terms of distributing content over the web?

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

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

发布评论

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

评论(2

旧竹 2024-08-11 23:23:47

部署 JavaFX 应用程序的 applet 和 webstart 方法都使用 JNLP 文件。

这与过去 JNLP 仅由 WebStart 使用(这就是您所指的)相比有所不同。

没有太大区别,取决于你希望用户拥有的用户体验。我想说,对于大多数重要的应用程序,您最好使用更传统的 Webstart 方法来启动应用程序(从链接下载 JNLP 文件并让 javaws 启动它)。

applet 和 webstart 之间的安全权限存在细微差别,此外,在 applet 中运行的内容与在 webstart 启动的应用程序中运行的内容之间,JavaFX 内部也存在一些 API 差异。这些正在慢慢被淘汰。

Both the applet and webstart methods of deploying JavaFX applications use JNLP files.

This is a change from the past when JNLP was only used by WebStart (which is what you are referring to).

There isn't much difference, it depends on the user experience you want the user to have. I would say for most significant apps, you are better off with the more traditional webstart method of launching apps (download a JNLP file from a link and have javaws launch it).

There are subtle differences in the security privileges between a applet and webstart, further more there are also some API differences inside JavaFX between what works in an applet vs what works in a webstart launched app. These are being slowly eliminated.

青衫负雪 2024-08-11 23:23:47

我认为你把事情搞混了。

JNLP 只是部署应用程序的一种方式,而 JavaFX 是一个表示层。

事实上,您可以将 JavaFX 代码部署在 JNLP 包中。

您应该将 JavaFX 与 Swing 进行比较;)

通过 JNLP,您可以分发 Swing 或 AWT 或 SWT 或 JavaFX java 应用程序。可以在沙箱中执行。

I think you're mixing things.

JNLP is just a way of deploying your application, while JavaFX is a presentation layer.

In fact you can deploy your JavaFX code in a JNLP package.

You should compare JavaFX with Swing ;)

With JNLP you can distribute Swing or AWT or SWT or JavaFX java applications. Having the posibility to execute then in a sandbox.

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