The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
July 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

answer for your question

Posted by Lakshmanan on July 09, 2001 at 10:16 AM

Hi
in the applet tag use the class id
then it will open
> > hi
> > iam using swing japplet in my project. if iam trying to open that applet in browser ,then the console is displaying the message given below. what is the problem ?.

> > thanks in advance

> > 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.(Unknown Source)

> > at javax.swing.TimerQueue.start(Unknown Source)

> > at javax.swing.TimerQueue.(Unknown Source)

> > at javax.swing.TimerQueue.sharedInstance(Unknown Source)

> > at javax.swing.JApplet.(Unknown Source)

> > at client.(client.java)

> > 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)

>
> include archive ="swingall.jar" in the applet tag.
> Are you accessing any local files?
> reply to this...

>
> bye
> Pavan Kumar Keely






Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us