加载 Java Applet 时出错

Error loading Java Applet

我正在尝试 运行 我的浏览器中的小程序,但一直收到 "Application Blocked. Your security settings have blocked a local application from running" 错误。我已进入 Java 控制面板并尝试更改设置但无法这样做。我不知道这是否有帮助,但这是我正在使用的 html 元素:

<object type="application/x-java-applet" width="200" height="400">
    <param name="code" value="applet.PieChart">
    <param name="archive" value="James_Sole_-_PRG-421_Week_4_Assignment.jar">
        Applet failed to run.  No Java plug-in was found.
</object>

您需要更改 Java 虚拟机设置,如下所示:

Go to the Java Control Panel (On Windows Click Start and search for Configure Java)
Click on the Security tab
Click on the Edit Site List button
Click Add in the Exception Site List window
Click in the empty field under the Location field to enter the URL