Java “应用程序被安全设置阻止”阻止在 Linux mint 上的 firefox 上使用 oracle SE 7 update 51 运行小程序
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/21279085/
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
"application blocked by security settings" prevent applets running using oracle SE 7 update 51 on firefox on Linux mint
提问by Nasser
Background
背景
Complete fresh installation of Oracle Java SDK (32-bit) on Linux. The installation is correct, the plugin is correctly installed.
在 Linux 上完成 Oracle Java SDK(32 位)的全新安装。安装正确,插件安装正确。
Problem
问题
The following error ("Application Blocked by Security Settings") appears when the applet runs inside Firefox:
当小程序在 Firefox 中运行时,会出现以下错误(“应用程序被安全设置阻止”):
Setup
设置
Here are the steps I used:
以下是我使用的步骤:
- Installed Linux mint 16 on VBox:
> uname -a Linux me-VirtualBox 3.11.0-12-generic #19-Ubuntu SMP Wed Oct 9 16:12:00 UTC 2013 i686 i686 i686 GNU/Linux
- Cleaned all Java instances.
- Followed instructions to installjdk-7u51-linux-i586.tar.gz on Linux.
- Verified installation
> java -version java version "1.7.0_51" Java(TM) SE Runtime Environment (build 1.7.0_51-b13) Java HotSpot(TM) Client VM (build 24.51-b03, mixed mode)
- Verified plugin:
> pwd /home/me/.mozilla/plugins > ls -l total 0 lrwxrwxrwx 1 me me 46 Jan 22 02:42 libnpjp2.so -> /usr/lib/jvm/jdk1.7.0/jre/lib/i386/libnpjp2.so
- Verified Java plugin:
- Verified Firefox activation:
- Started the Java ControlPanel; set security to Medium:
- Clicked Apply.
- Restarted Firefox.
- 在 VBox 上安装 Linux mint 16:
> uname -a Linux me-VirtualBox 3.11.0-12-generic #19-Ubuntu SMP Wed Oct 9 16:12:00 UTC 2013 i686 i686 i686 GNU/Linux
- 清理了所有Java 实例。
- 其次说明安装在Linux上的jdk-7u51-Linux的i586.tar.gz。
- 验证安装
> java -version java version "1.7.0_51" Java(TM) SE Runtime Environment (build 1.7.0_51-b13) Java HotSpot(TM) Client VM (build 24.51-b03, mixed mode)
- 验证插件:
> pwd /home/me/.mozilla/plugins > ls -l total 0 lrwxrwxrwx 1 me me 46 Jan 22 02:42 libnpjp2.so -> /usr/lib/jvm/jdk1.7.0/jre/lib/i386/libnpjp2.so
- 已验证的Java 插件:
- 经验证的 Firefox 激活:
- 启动Java ControlPanel;将安全设置为中:
- 点击应用。
- 重新启动了 Firefox。
Question
题
How do you change the security settings to allow the applet to run?
如何更改安全设置以允许小程序运行?
采纳答案by martin
I had this issue. The security settings in the ControlPanel seem to be user specific. Try running it as the user you are actually running your browser as (you are not browsing as root!??) and setting the security level to Medium there. - For me, that did it.
我有这个问题。ControlPanel 中的安全设置似乎是特定于用户的。尝试以您实际运行浏览器的用户身份运行它(您不是以 root 身份浏览!??)并将安全级别设置为中。- 对我来说,做到了。
回答by Juan Carlos Alpizar Chinchilla
As an alternative answer, there's a command line to invoke directly the Control Panel, which is javaws -viewer
, should work for both openJDK and Oracle's JDK (thanks @Nasser for checking the availability in Oracle's JDK)
作为替代答案,有一个命令行可以直接调用控制面板,即javaws -viewer
,应该适用于 openJDK 和 Oracle 的 JDK(感谢 @Nasser 检查 Oracle JDK 中的可用性)
Same caution to run as the user you need to access permissions with applies.
与您需要访问权限的用户一样谨慎运行。
回答by Ridzuan Adris
The application that you are running is blocked because the application does not comply with security guidelines implemented in Java 7 Update 51
您正在运行的应用程序被阻止,因为该应用程序不符合 Java 7 Update 51 中实施的安全准则
回答by EpicPandaForce
You can also use Edit Site Listand make it be an exception so that you can run it from the specific website.
您还可以使用“编辑站点列表”并将其设置为例外,以便您可以从特定网站运行它。
回答by colynn liu
$pwd /usr/lib/jvm/jre1.8.0_25/bin
$pwd /usr/lib/jvm/jre1.8.0_25/bin
./jcontrol
./jcontrol
as follow,
如下,
java Control Panel --> Security --> Edit Site list ,
then apply, and ok.
java Control Panel --> Security --> Edit Site list ,
然后应用,ok。
回答by MickeyVirus
Just start your browser with superuser rights, and don't forget to set Java's JRE security to medium.
只需以超级用户权限启动浏览器,不要忘记将 Java 的 JRE 安全性设置为中等。