简体   繁体   English

为什么我们需要Java和Applet中的JNLP文件?

[英]Why do we need JNLP File in Java and Applet?

  1. Why do we need JNLP file? 为什么我们需要JNLP文件?
  2. What is the advantage of it? 它的优点是什么?
  3. Can we run applet without signing it on browser? 我们可以运行applet而无需在浏览器上签名吗?

Why do we need JNLP file? 为什么我们需要JNLP文件?

For some of the things that launching via JWS brings to an applet, read the info. 对于通过JWS启动的一些内容带给applet,请阅读信息。 tag on JNLP (& chase the links). 在JNLP上标记 (并追踪链接)。

Can we run applet without signing it on browser? 我们可以运行applet而无需在浏览器上签名吗?

Does that make sense in your head? 这在你脑子里有意义吗? To me, it sounds like nonsense. 对我来说,这听起来像胡说八道。

Whether code is signed is unrelated to whether it is deployed using Java Web Start. 代码是否已签名与是否使用Java Web Start进行部署无关。

The browser has (little or) nothing to do with code signing. 浏览器(很少或没有)与代码签名无关。

But guessing one meaning. 但猜测一个意思。 Code can be deployed as either a standard embedded applet or by web start, as either signed or unsigned. 代码可以部署为标准嵌入式applet,也可以通过web start部署为signed或unsigned。

JNLP allows you to do many more things than specifying where application files should be downloaded. JNLP允许您执行更多操作,而不是指定应下载应用程序文件的位置。 Given the presence of a JNLP client, there is a wide range of features that could be supported by the JNLP protocol, as follows: 鉴于JNLP客户端的存在,JNLP协议可以支持多种功能,如下所示:

  1. A richer client environment at runtime. 运行时更丰富的客户端环境。 Developers can use a new API that leverages the underlying JNLP Client, allowing standard runtime services to access system resources. 开发人员可以使用利用底层JNLP客户端的新API,允许标准运行时服务访问系统资源。
  2. A secure deployment solution. 安全的部署解决方案。 End users can trust a reliable JNLP Client because it will not allow any harmful behavior by client applications. 最终用户可以信任可靠的JNLP客户端,因为它不允许客户端应用程序的任何有害行为。
  3. Versioning and incremental updates. 版本控制和增量更新。 Each resource can be tagged with a version id and managed accordingly. 每个资源都可以使用版本ID进行标记并进行相应管理。 Incremental updates are obtained using the JARDiff format. 使用JARDiff格式获得增量更新。
  4. Multiple JREs management and automatic installation of additional JREs and optional packages. 多个JRE管理和自动安装其他JRE和可选包。
  5. Offline operation. 离线操作。 Deployed applications can work even without a connection with the deployment server. 即使没有与部署服务器的连接,已部署的应用程序也可以工作。 Even if it is a somewhat minimal feature, it is widely used in practice. 即使它是一个有点微小的特征,它在实践中被广泛使用。
  6. Automatic installation of native code/libraries. 自动安装本机代码/库。 Some Java programs may need some platform-specific support for running. 某些Java程序可能需要一些特定于平台的运行支持。
  7. JNLP Client management console. JNLP客户端管理控制台。 Although not part of the specifications, the JNLP Client is providing to end users a form of graphical configuration console (for instance, the management console of Java Web Start). 虽然不是规范的一部分,但JNLP客户端向最终用户提供了一种形式的图形配置控制台(例如,Java Web Start的管理控制台)。
  8. The capability of using platform-dependent facilities such as shortcuts, accelerators, and the like. 使用平台相关设施(如快捷方式,加速器等)的功能。 Deployed applications are integrated on the native OS—providing shortcuts and launching scripts or other platform-dependent mechanisms So your Java application will look like a native application with a little effort. 部署的应用程序集成在本机操作系统上,提供了快捷方式和启动脚本或其他依赖于平台的机制。因此,您的Java应用程序看起来就像本机应用程序一样。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM