无需下载...启动webstart ...? [英] Launch webstart without downloading...?

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

问题描述

我制作了一个Java webstart应用程序,并创建了一个带有链接的HTML页面来启动它。问题是,在谷歌浏览器中,没有选项可以在不保存的情况下打开文件。我想制作一个HTML页面,可以自动启动一个JNLP文件,而不必保存它。或者说,没有用户必须打开他们的文件资源管理器才能启动它)这可能吗?

解决方案

启动JNLP使用使用web start部署的嵌入式applet。


  1. 开始一个基于Swing的JApplet,它接受一个图像路径(图标)按钮。使用JWS部署小应用程序(嵌入网页中的链接)。

  2. 当用户单击按钮时,使用 BasicService。 showDocument(URL) 方法来启动JWS(基于框架)的应用程序。正如我在演示中注意到的那样。在Java 6+中,调用显示另一个web start启动文件(例如 b code> BasiceService.showDocument(another.jnlp))将直接交给JavaWS ,而不显示浏览器窗口。



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?

解决方案

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

  1. Start with a Swing based JApplet that accepts an image path (icon) and a string for the button. Deploy the applet (embedded in the web page, where the link would be) using JWS.
  2. When the user clicks the button, use the BasicService.showDocument(URL) method to launch the JWS (frame based) app. As I note in the demo. of the BasicService..

    ..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天全站免登陆