您的安全设置已阻止应用程序使用过时或过期的 Java 版本运行
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/25550266/
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
Your security settings have blocked an application from running with an out-of-date or expired version of Java
提问by a.k
Greetings .
你好 。
I've encountered a Java Error ,which is actually giving me a nightmare .
我遇到了 Java 错误,这实际上让我做了一场噩梦。
It says :
它说 :
" Application Blocked by Security Settings "
“ 应用被安全设置阻挡了 ”
" Your security settings have blocked an application from running with an out-of-date or expired version of Java "
“您的安全设置已阻止应用程序使用过时或过期的 Java 版本运行”
Java Version : 1.7_25 ( Recommended for my work and not an old one i believe)
Java 版本:1.7_25(推荐用于我的工作,而不是我认为的旧版本)
Workaround i have performed (which did not work) :
我已经执行的解决方法(不起作用):
- Lowered Security Level to Medium.
- Cleared Browser Cache and Cookies.
- Checked a few settings in the Advanced Tab of the Java Control Panel like :
General : Allow user to grant permissions to signed content.
- Java Cache was also cleared.
- 将安全级别降低到中等。
- 清除浏览器缓存和 Cookie。
- 在 Java 控制面板的高级选项卡中检查了一些设置,例如:
常规:允许用户授予对签名内容的权限。
- Java 缓存也被清除。
Majority of the issues related to the error would go after the security level is lowered to medium. But mine doesn't.
大多数与错误相关的问题都会在安全级别降低到中等之后出现。但我的没有。
Hope some one could help me out. Shall be ever grateful.
希望有人可以帮助我。将永远心存感激。
Thank you !
谢谢 !
AK
AK
回答by DavidPostill
"Your security settings have blocked an application from running with an out-of-date or expiredversion of Java"
“您的安全设置已阻止应用程序使用过时或过期的 Java 版本运行”
Java Version : 1.7_25( Recommended for my work and not an old one i believe)
Java 版本:1.7_25(推荐用于我的工作,而不是我认为的旧版本)
From Java SE Downloads:
Java SE 7u67 This release addresses a regression introduced in the most recent security update. Oracle strongly recommends that all Java SE 7 users upgrade to this release.
Java SE 7u67 此版本解决了最新安全更新中引入的回归问题。Oracle 强烈建议所有 Java SE 7 用户升级到此版本。
You are noton the latest release for version 1.7.
您使用的不是1.7 版的最新版本。
There have been 7releases since 1.7.25.
自 1.7.25 以来已经发布了7 个版本。
回答by Stephen C
"[Java 1.7.0_25 is] recommended for my work and not an old one i believe".
“[Java 1.7.0_25] 被推荐用于我的工作,而不是我认为的旧版本”。
Unfortunately, your belief is incorrect. As of now (when you asked the Question), Java 1.7.0_u25 is over a year old, and there have been 4 security-relevant releases to Java 1.7 since that release.
不幸的是,你的信念是错误的。到目前为止(当您提出问题时),Java 1.7.0_u25 已经有一年多了,自该版本以来,Java 1.7 已经发布了 4 个与安全相关的版本。
In fact, you probably don't have any option apart from upgrading ... if you want to use that application via your web browser. The version checks cannot be overridden (AFAIK) for Java applications launched via your web browser and/or using Java Web Start. This is a good thing too.
事实上,除了升级之外,您可能别无选择……如果您想通过 Web 浏览器使用该应用程序。对于通过 Web 浏览器和/或使用 Java Web Start 启动的 Java 应用程序,版本检查不能被覆盖 (AFAIK)。这也是一件好事。
So how does this jive with your "work recommendation"?
那么这与您的“工作推荐”有什么关系呢?
You need to talk to your system admins, or security people, or whoever made that recommendation. Under normal circumstances, it is bad to use an out-of-date version of Java, especially if you enable it in your web browser. It leaves you open to all sorts of security exploits.
您需要与系统管理员、安全人员或提出该建议的任何人交谈。在正常情况下,使用过时的 Java 版本是不好的,尤其是当您在 Web 浏览器中启用它时。它让您对各种安全漏洞持开放态度。
It may turn out that there is a sound reason for this "recommendation"; for example a compatibility issue for some other Java-based apps that they need to support. If that is the case, you have a hard choice to make:
事实证明,这种“建议”是有充分理由的;例如,他们需要支持的其他一些基于 Java 的应用程序的兼容性问题。如果是这种情况,您将面临一个艰难的选择:
You could upgrade to the latest Java 1.7 release and risk not being able to use applications that (really) require an older release of Java.
You could not upgrade, and give up on the idea of using the app that is giving you problems.
You install a second web browser, and configure on to use the latest Java release, and the other to use the older "recommended" release. This could be messy, but (at least) Java is designed to allow you to have multiple JRE or JDK installs on your system simultaneously.
您可以升级到最新的 Java 1.7 版本,并冒着无法使用(确实)需要旧版本 Java 的应用程序的风险。
您无法升级,并放弃使用给您带来问题的应用程序的想法。
您安装第二个 Web 浏览器,并配置为使用最新的 Java 版本,另一个使用较旧的“推荐”版本。这可能很麻烦,但(至少)Java 旨在允许您同时在系统上安装多个 JRE 或 JDK。
... but my application(on which i am working, unfortunately supports up to this version (i.e. 7_25).
...但我的应用程序(我正在工作,不幸的是支持这个版本(即 7_25)。
Developing an application that only runs on old versions of Java doesn't seem like a good business strategy.
开发仅在旧版本 Java 上运行的应用程序似乎不是一个好的商业策略。
But assuming there is a good reason, you should be able to install BOTH 1.7.0_25 AND a later version on your system ... and use one for your development work and the other for running web-based applications.
但是假设有一个很好的理由,您应该能够在您的系统上安装 1.7.0_25 和更高版本……并将一个用于您的开发工作,另一个用于运行基于 Web 的应用程序。
Or if that isn't appealing, then use different virtual machines, or different physical machines for doing the different types of work that you need to do.
或者,如果这不吸引人,那么使用不同的虚拟机或不同的物理机来完成您需要做的不同类型的工作。
回答by yurin
Actual problem can be not an outdated Java but applet jar sign/manifest/jnlp.
实际问题可能不是过时的 Java,而是 applet jar sign/manifest/jnlp。
Workaround:
解决方法:
1.Install latest JRE from Oracle site
1.从Oracle站点安装最新的JRE
2.Uncheck "Enable Java content in browser" in old java/jre (javacpl.exe)
2.在旧的java/jre(javacpl.exe)中取消选中“在浏览器中启用Java内容”
3.Make sure that applet correctly works with latest JRE
3.确保小程序与最新的JRE正确工作
4.Uncheck "Enable Java content in browser" in latest JRE and check it in your old JRE
4.在最新的JRE中取消选中“在浏览器中启用Java内容”并在旧的JRE中选中它
回答by Keshav Shelar
I had same issue, I reduced security level from high to medium and allowed to run the application at risk, it worked for me.
我遇到了同样的问题,我将安全级别从高降低到中,并允许在风险中运行应用程序,这对我有用。
回答by NetMage
I recommend adding the site URL to the Security Exception Site list without lowering your overall security level.
我建议在不降低整体安全级别的情况下将站点 URL 添加到安全例外站点列表。