加载Java Applet时出错

时间:2015-04-19 01:27:29

标签: java applet

enter image description here

enter image description here

我正在尝试在浏览器中运行applet,但仍然收到错误消息,其中显示" Application Blocked。您的安全设置已阻止本地应用程序运行"。我已进入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>

1 个答案:

答案 0 :(得分:0)

您需要更改Java VM设置,如下所示:

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