java - Local Applet Security Exception -


i'm trying run basic hello world java applet in browser, keep getting "application blocked security settings" following message:

securityexception: security settings have blocked local application running

i tried changing security settings through java control panel, there no slider, certificates.

i same error when trying open .html file in other browsers.

applet code:

import javax.swing.*; import java.awt.*;  public class helloworldapp extends japplet {     public void init()     {         jlabel label = new jlabel("hello world");         add(label);     } } 

html

<!doctype html> <html> <head></head>     <body>        <applet code="helloworldapp.class" width="300" height="100"></applet>     </body>     </html> 

question: how can applet work? or rather, how can change security settings allow applet run locally, if issue , not else?

okay, after deleting java 6 , 7 , re-installing 7 , restarting computer, works. did not know had delete older version after updated 7 thought done automatically on update.

this site provided guidance. bad such simple question.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -