Run local java applet in browser (chrome/firefox) “Your security settings have blocked a local application from running”

后端 未结 8 1066
囚心锁ツ
囚心锁ツ 2020-12-17 09:32

I\'m trying to run a Java Applet (html file), but the browser keeps saying:

\"Your security settings have blocked a local applicatio

相关标签:
8条回答
  • 2020-12-17 10:06

    This problem happens when older versions of java still on your system disrupt any new versions installed. To stop this problem you need to first remove all java software using - Control Panel + Remove Programs + then uninstall java. (At this stage, I recommend cleaning out your registry using CCleaner using their Registry option or similar program to ensure a clean sweep then reboot) After rebooting reinstall the most recent version of java and all will be well.

    http://www.filehippo.com/download_ccleaner -LINK TO CCLEANER

    0 讨论(0)
  • 2020-12-17 10:09

    I think the upgrade of Java will not help. You need to uninstall the old version and then install the latest java version to help you. Make sure that you restart the computer once you are done with the installation.

    Hope it helps!

    0 讨论(0)
  • 2020-12-17 10:10

    After reading Java 7 Update 21 Security Improvements in Detail mention..

    With the introduced changes it is most likely that no end-user is able to run your application when they are either self-signed or unsigned.

    ..I was wondering how this would go for loose class files - the 'simplest' applets of all.

    Local file system

    Dialog: Your security settings have blocked a local application from running
    Your security settings have blocked a local application from running

    That is the dialog seen for an applet consisting of loose class files being loaded off the local file system when the JRE is set to the default 'High' security setting.


    Note that a slight quirk of the JRE only produced that on point 3 of.

    1. Load the applet page to see a broken applet symbol that leads to an empty console.
      Open the Java settings and set the level to Medium.
      Close browser & Java settings.
    2. Load the applet page to see the applet.
      Open the Java settings and set the level to High.
      Close browser & Java settings.
    3. Load the applet page to see a broken applet symbol & the above dialog.

    Internet

    If you load the simple applet (loose class file) seen at this resizable applet demo off the internet - which boasts an applet element of:

    <applet
        code="PlafChanger.class"
        codebase="."
        alt="Pluggable Look'n'Feel Changer appears here if Java is enabled"
        width='100%'
        height='250'>
    <p>Pluggable Look'n'Feel Changer appears here in a Java capable browser.</p>
    </applet>
    

    It also seems to load successfully. Implying that:-

    Applets loaded from the local file system are now subject to a stricter security sandbox than those loaded from the internet or a local server.

    Security settings descriptions

    As of Java 7 update 51.

    • Very High: Most secure setting - Only Java applications identified by a non-expired certificate from a trusted authority will be allowed to run.
    • High (minimum recommended): Java applications identified by a certificate from a trusted authority will be allowed to run.
    • Medium - All Java applications will be allowed to run after presenting a security prompt.
    0 讨论(0)
  • 2020-12-17 10:14

    For XP: Start > Control Panel > Java > Security > (Set to Medium) http://www.java.com/en/download/help/java_update.xml

    0 讨论(0)
  • 2020-12-17 10:15

    In my case, this has been resolved by going to control panel > java > security > then add url in the exception site list. Then apply. Test again the site and it should now allow you to run the local java.

    0 讨论(0)
  • 2020-12-17 10:24

    Go to java control tab>java control pannel>click security tab>down the security level to medium. Then applet progrramme after 2to 3 security promt it will run.

    0 讨论(0)
提交回复
热议问题