Java 降低安全设置并添加站点异常后,应用程序被安全设置阻止
我有一个通过.jnlp文件启动的Java小程序,但它被以下消息阻止:Java 降低安全设置并添加站点异常后,应用程序被安全设置阻止,java,java-web-start,jnlp,japplet,signed-applet,Java,Java Web Start,Jnlp,Japplet,Signed Applet,我有一个通过.jnlp文件启动的Java小程序,但它被以下消息阻止: The Java security settings have prevented this application from running. You may change this behaviour in the Java Control Panel. 我使用Java控制面板改变了这一点,但是我仍然得到了相同的消息。我将我的站点添加到异常URL,并将Java 7和8控制面板的安全设置降低到中等 我还尝试使用Java1
The Java security settings have prevented this application from running. You may change this behaviour in the Java Control Panel.
我使用Java控制面板改变了这一点,但是我仍然得到了相同的消息。我将我的站点添加到异常URL,并将Java 7和8控制面板的安全设置降低到中等
我还尝试使用Java1.8和1.7进行编译,并尝试使用Oracle的Java7和8WebStart运行应用程序。我分别在Ubuntu和Windows7、Firefox和Chrome上进行了测试,两者都不起作用
我还签署了.jar,如下所示:
jarsigner -keystore ~/.keystore -tsa http://timestamp.comodoca.com/rfc3161 MapApp.jar lucas
<body>
<script src=
"http://www.java.com/js/deployJava.js"></script>
<script>
// using JavaScript to get location of JNLP
// file relative to HTML page
var dir = location.href.substring(0,
location.href.lastIndexOf('/')+1);
var url = "mapApp.jnlp";
deployJava.createWebStartLaunchButton(url, '1.7.0');
</script>
</body>
这是我的清单。mf:
这是我的.jnlp文件:
我将其称为:
jarsigner -keystore ~/.keystore -tsa http://timestamp.comodoca.com/rfc3161 MapApp.jar lucas
<body>
<script src=
"http://www.java.com/js/deployJava.js"></script>
<script>
// using JavaScript to get location of JNLP
// file relative to HTML page
var dir = location.href.substring(0,
location.href.lastIndexOf('/')+1);
var url = "mapApp.jnlp";
deployJava.createWebStartLaunchButton(url, '1.7.0');
</script>
</body>
即使是建议或参考也会有所帮助。我找不到任何人在调整其安全设置并匹配其权限后仍存在此问题。有什么想法吗?我希望这会有所帮助,但在manifest.mf中,我注意到权限键值对的末尾有一个额外的空间。.jar清单中的键值对必须是精确的字符串匹配
Manifest-Version: 1.0
Permissions: all-permissions
Application-Name: Map Application Demonstration
Main-Class: visualization.USMaps
Codebase: *
Trusted-Only: true
Trusted-Library: true
我希望他们在构建jar之前已经修剪了键值对