启动 webstart 而不下载...? [英] Launch webstart without downloading...?

查看:38
本文介绍了启动 webstart 而不下载...?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我制作了一个 Java webstart 应用程序,并创建了一个带有启动它的链接的 HTML 页面.问题是,在谷歌浏览器中,没有打开"文件而不保存文件的选项.我想制作一个可以自动启动 JNLP 文件而无需保存的 HTML 页面.或者更确切地说,用户不必打开他们的文件浏览器来启动它)这可能吗?

I have made a Java webstart application, and created an HTML page with the link to launch it. The problem is, in Google Chrome, there is no option to just 'Open' a file without saving it. I want to make an HTML page that can automatically launch a JNLP file without having to save it. Or rather, without the user having to open their file explorer to launch it) Is this possible?

推荐答案

使用使用 web start 部署的嵌入式小程序启动 JNLP.

Launch the JNLP using an embedded applet deployed using web start.

  1. 从接受图像路径(图标)和按钮字符串的基于 Swing 的 JApplet 开始.使用 JWS 部署小程序(嵌入在网页中,链接所在的位置).
  2. 当用户单击按钮时,使用 BasicService.showDocument(URL) 方法来启动 JWS(基于框架的)应用程序.正如我在 演示中所指出的.基本服务...

..在 Java 6+ 中,显示另一个 Web 启动启动文件(例如 BasiceService.showDocument(another.jnlp)) 的调用将直接传递给 JavaWS, 没有出现浏览器窗口.

..In Java 6+, a call to show another web start launch file (e.g. BasiceService.showDocument(another.jnlp)) will be handed directly to JavaWS, with no browser window appearing.

这篇关于启动 webstart 而不下载...?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆