首页 > 解决方案 > 不再显示发布者 Java Web Start 的消息

问题描述

我已经或多或少地通过 Java Web Start 开发了一个应用程序:How do I fix "missing Codebase, Permissions, and Application-Name manifest attribute" in my JNLP app? 我已经用 manifest.txt 等打包了 jar。但是通过这种方式我解决了缺少属性的问题,现在我遇到了其他问题,总是显示此消息!我检查了“不再显示”,每次按下按钮执行时总是显示!在此处输入图像描述

Adicionally 这是我的清单文件:

清单版本:1.0 类路径:. 主类:com.zkteco.biometric.AccesoBiometrioAS2 权限:all-permissions 代码库:http: //192.168.111.25 :8180/pos-web / 应用程序名称:Biometrico

我的 Jnlp 文件是这样的:

<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="http://192.168.111.25:8180/pos-web/">
 <information> <title>CajaPos</title> <vendor>xxx</vendor>
</information>
<security><all-permissions/>
</security>
<resources>
<j2se version="1.2+"/>
 <jar href="xx.jar" 
main="true" /> 
</resources
<application-desc main-class="ec.com.xx.pos"  type="JavaFX">
<argument>XY</argument>
</application-desc>
</jnlp>

在此页面中,检查后对话框不再显示并且工作正常。 https://docs.oracle.com/javase/tutorial/deployment/webstart/deploying.html

因为我使用 servlet 以动态方式生成jnlp -xml,所以每个请求的XY都会发生变化。

标签: java-web-start

解决方案


这是由于您的 Java 设置造成的。这是一个安全提示。您无法在应用程序中更改任何内容来阻止此对话框,最终用户可以更改其安全设置以显示/隐藏这些对话框窗口。

编辑:我还建议将您的应用程序迁移到不同的交付平台,因为Java Web Start 被 Oracle 猛烈关闭。


推荐阅读