java - 关于 Java Web Start 的问题

标签 java jar executable-jar java-web-start

我正在研究将在 Windows 和 Mac 上运行的桌面 Java 应用程序的部署选项。我目前正在查看 Web Start,但有几个问题。

  1. 如果我可以创建一个可执行的 jar 文件,并且用户只需双击它即可启动应用程序,为什么我还需要使用 Web Start?为什么不直接将 jar 文件放在 Web 服务器上并让用户下载呢?使用 Web Start 我能得到什么?

  2. 我的理解是,Web Start是在安装JRE时出现的。但是如果用户没有在他们的机器上安装 Java 会发生什么?它会引导他们完成安装过程还是必须自己下载并安装 JRE?

最佳答案

请参阅Java Web Start Wiki请访问 SO 页面获取大部分答案。

1) What am I getting out of using Web Start?

从第二段开始:

JWS provides many appealing features including, but not limited to

  • splash screens
  • desktop integration
  • file associations
  • automatic update (including lazy downloads and programmatic control of updates)
  • partitioning of natives & other resource downloads by platform, architecture or Java version
  • configuration of run-time environment (minimum J2SE version, run-time options, RAM etc.)
  • easy management of common resources using extensions..
<小时/>

2) what happens if the user has not installed Java on their machine?

这就是 deployJava.js 的用途。

Java Rich Internet Applications Deployment Advice. Describes the deployJava.js script designed to ensure a suitable minimum version of Java is installed before providing a link to a JWS app. or launching an applet.

关于java - 关于 Java Web Start 的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14225480/

相关文章:

java - JMeter 根据先前的响应创建 HTTP 请求正文

java - 如何从遵循特定格式的字符串中删除未知字符?

java - 如何在Eclipse中将所有资源打包成可运行的JAR

scala - 同一 src 下不同主类的单独 jar

scala - "scala.runtime in compiler mirror not found"但在使用 -Xbootclasspath/p :scala-library. jar 启动时工作

java - maven使用spring bootparent创建可执行jar包

java - 构建项目期间 Eclipse 202003 javaIO 错误

java - 使用正则表达式解析此日期时间字符串

java - Maven 类路径 Log4J NoClassDefFoundError

java - SpringBoot 从 2.4.X 升级到 2.6.X 后无法运行我的 jar