Java:应用程序被安全设置阻止
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/19450332/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Java: Application Blocked by Security Setting
提问by Sagun
I have a web application that uses Java 6 update 22 and was working fine until yesterday and now all of sudden when I try to load a form from my application it says "Application Blocked by Security Setting" I can't update to the latest Java b/c it's not compatible and I can't set the Java security setting to Medium from high since it is a risk. I have multiple users experiencing this issue, any ideas? I know Windows released their updates recently and not sure if that could be a factor as I couldn't find anything, thanks.
我有一个使用 Java 6 更新 22 的 Web 应用程序,并且一直正常工作直到昨天,现在突然当我尝试从我的应用程序加载表单时,它显示“应用程序被安全设置阻止”我无法更新到最新的 Java b/c 它不兼容,我无法将 Java 安全设置从高设置为中,因为它存在风险。我有多个用户遇到这个问题,有什么想法吗?我知道 Windows 最近发布了他们的更新,但不确定这是否是一个因素,因为我找不到任何东西,谢谢。
回答by flup
I'm assuming your application is a Java applet. Is it?
我假设您的应用程序是一个 Java 小程序。是吗?
Running old versions of the java plugin in your browser, unfortunately, is a big security risk. Others can insert malicious applets on web pages and gain access to the user's computer by exploiting known bugs in the old java plugin.
不幸的是,在浏览器中运行旧版本的 java 插件会带来很大的安全风险。其他人可以在网页上插入恶意小程序,并通过利用旧 java 插件中的已知错误来访问用户的计算机。
Perhaps you can use java webstart instead? See http://docs.oracle.com/javase/tutorial/deployment/webstart/deploying.htmland Opening JNLP File in Java 6 JRE instead of JRE 7
也许您可以改用 java webstart?请参阅http://docs.oracle.com/javase/tutorial/deployment/webstart/deploying.html并在 Java 6 JRE 而不是 JRE 7 中打开 JNLP 文件
You could also try signing the jarfile(s) of your applet, if you have not already done so.
您也可以尝试对小程序的 jarfile(s) 进行签名,如果您还没有这样做的话。
回答by niutech
Just set the Java security level to mediumor better whitelist your Java app. Here is how to do it.
只需将 Java 安全级别设置为中等或更好的 Java 应用程序白名单。这是如何做到的。
回答by madde
If changing the security level to medium doesn't help you can go to the Windows Control Panel-> Programs-> Java. There you go to Securityand press Edit Site List..., click Addand there you type in the location (the URL where the app is hosted) and press OK.
如果将安全级别更改为中等没有帮助,您可以转到Windows Control Panel-> Programs-> Java。在那里您转到安全并按Edit Site List...,单击Add并在那里输入位置(托管应用程序的 URL)并按OK。