Hello Michael,
Thanks for the response.
Here is the source code.
public class InitialApplet extends JApplet {
boolean isStandalone = false;
JButton jbtn_Input = new JButton();
JButton jbtn_Execution = new JButton();
JButton jbtn_Simulation = new JButton();
JButton jbtn_File = new JButton();
JButton jbtn_Cancel = new JButton();
//Get a parameter value
public String getParameter(String key, String def) {
return isStandalone ? System.getProperty(key, def) :
(getParameter(key) != null ? getParameter(key) : def);
}
//Construct the applet
public InitialApplet() {
}
It is giving exception when executing the constructor.
Thanking you
Sriranga.
On Mon, 19 Feb 2001, Michael Weller wrote:
> your applet tries to access some (maybe critical) system resource that an
> applet isn't allowed to access per default. you need to sign your applet to
> get access to those resources (refer to
> http://developer.java.sun.com/developer/technicalArticles/Security/Signed/in
> dex.html for further information).
> Maybe the source of your applet might also be helpful...
>
> -mw
>
>
> ----- Original Message -----
> From: "Shriranga K Kulkarni" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, February 19, 2001 6:10 AM
> Subject: Security exception while loading a swing applet.
>
>
> > Hello all,
> >
> > I am loading a swing applet through a servlet. I have been succesful in
> > loading the same. But sometimes the following execption occurs. If you
> > have an answer to the below problem , please let me know or at least tell
> > me a site where the below problem can be addressed.
> >
> > Thanking you
> > Sriranga.
> >
> >
> > JAR cache enabled.
> >
> > java.security.AccessControlException: access denied
> > (java.lang.RuntimePermission modifyThreadGroup)
> >
> > at java.security.AccessControlContext.checkPermission(Unknown
> > Source)
> >
> > at java.security.AccessController.checkPermission(Unknown Source)
> >
> > at java.lang.SecurityManager.checkPermission(Unknown Source)
> >
> > at sun.applet.AppletSecurity.checkAccess(Unknown Source)
> >
> > at java.lang.ThreadGroup.checkAccess(Unknown Source)
> >
> > at java.lang.Thread.init(Unknown Source)
> >
> > at java.lang.Thread.<init>(Unknown Source)
> >
> > at javax.swing.TimerQueue.start(Unknown Source)
> >
> > at javax.swing.TimerQueue.<init>(Unknown Source)
> >
> > at javax.swing.TimerQueue.sharedInstance(Unknown Source)
> >
> > at javax.swing.JApplet.<init>(Unknown Source)
> >
> > at boiler.InitialApplet.<init>(InitialApplet.java:34)
> >
> > at java.lang.Class.newInstance0(Native Method)
> >
> > at java.lang.Class.newInstance(Unknown Source)
> >
> > at sun.applet.AppletPanel.createApplet(Unknown Source)
> >
> > at sun.plugin.AppletViewer.createApplet(Unknown Source)
> >
> > at sun.applet.AppletPanel.runLoader(Unknown Source)
> >
> > at sun.applet.AppletPanel.run(Unknown Source)
> >
> > at java.lang.Thread.run(Unknown Source)
> >
> >
> ___________________________________________________________________________
> > To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> > of the message "signoff SERVLET-INTEREST".
> >
> > Archives: http://archives.java.sun.com/archives/servlet-interest.html
> > Resources: http://java.sun.com/products/servlet/external-resources.html
> > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html