如何使用 JNLP 下载 Java 7?
我正在开发一个需要 Java 7 平台的富互联网应用程序。其关联的 JNLP 文件如何确保该平台的安装?
我已经在 JNLP 文件中尝试了以下几种变体(主要是使用“href”属性中的 URL):
<jnlp ...>
...
<resources>
<java version="1.7+" href="http://download.java.net/jdk7/m5"/>
...
</resources>
</jnlp>
但似乎没有任何效果 - 我总是被发送 此处,其中没有 Java 7 版本。
I'm developing a rich Internet application that requires a Java 7 platform. How can its associated JNLP file ensure the installation of that platform?
I've tried several variations on the following in the JNLP file (mostly playing with the URL in the "href" attribute):
<jnlp ...>
...
<resources>
<java version="1.7+" href="http://download.java.net/jdk7/m5"/>
...
</resources>
</jnlp>
but nothing seems to work -- I always wind up being sent here, where there is no Java 7 release.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
据谷歌快速搜索显示,Java 7 尚未正式“发布”——您可以获取 最新的抢先体验快照,但发布日期似乎是 2010 年 9 月或更晚。
As far as a quick google search says, Java 7 has not offically been "released" yet -- you can get the latest early access snapshots, but it seems September 2010 or later is the release date.
Java Web Start 并未随 JDK 开源(唉),因此这仍然依赖于实现,我们无法参考官方的 Oracle Java 源代码来指示应如何完成此操作。
现在已经有 Java 7 的开发人员构建版本了。您可以开始尝试它,至少在正式发布时做到这一点。
Java Web Start is not open sourced with the JDK (alas), so this is still implementation dependent and we cannot refer to the official Oracle Java source to indicate how this should be done.
There are developer builds of Java 7 out in the wild now. You can start experimenting with it to at least get this right for when it is officially released.