当我们从浏览器中单击 jnlp 链接时,如何防止下载弹出窗口,因为该 jnlp 已下载并可在我的本地作为快捷方式使用

发布于 2024-08-25 08:31:29 字数 218 浏览 2 评论 0原文

我需要通过浏览器中的 jnlp 链接打开 Swing 应用程序。

一旦单击 jnlp 链接,我的应用程序将下载并安装在我们的本地系统中,

但如果我再次转到浏览器并单击 jnlp 链接,那么它也会要求再次下载。

所以我的问题是,如果任何用户再次单击,它不应该要求下载,因为它已经安装在我的本地系统中。

请表达必要的、非常紧急的

问候, 那拉辛哈

i have an requirement of opening Swing application through jnlp link from browser.

once click on jnlp link my application will download and installed in our local system,

but again if i go to my browser and click on jnlp link , then also it will ask for download again .

so my problem is if any user clicks again it should not ask for download because it was already installed in my local system.

please do needful , very urgent

regards,
Narasimha

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

很糊涂小朋友 2024-09-01 08:31:30

网页上的链接只是一个指向 jnlp 资源的链接,也就是说,当单击时,您总是会将 jnlp 下载到您的计算机上,然后由 Java Web Start 模块执行。你对此无能为力。

您可以做的是以下行添加到您的 jnlp 中:

<information>
   <title>My App</title>
   <shortcut online="false">
     <desktop/>
     <menu submenu="My Corp"/>
   </shortcut>
   <icon href="icon.gif"/>
</information>

这将在用户桌面上创建一个品牌精美的快捷方式,用户可以单击该快捷方式来启动您的应用程序,而无需转到网页并下载再次jnlp 文件。

The link on the web page is just a link to jnlp resource, that is when clicked you will alway get jnlp downloaded to your machine and then executed by Java Web Start module. There is nothing you can do about it.

What you can do is you can add the following lines to your jnlp:

<information>
   <title>My App</title>
   <shortcut online="false">
     <desktop/>
     <menu submenu="My Corp"/>
   </shortcut>
   <icon href="icon.gif"/>
</information>

That will create a nicely branded shortcut on user's desktop that user can click on to start your app instead of going to the web page and downloading jnlp file again.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文