Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

swing applet not loading in browser

 
Ramesh Ch
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.<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 client.<init>(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)
 
Amit Agarwal
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi chsvramesh
it seems that you may need some extra permissions for the applet. Try making the applet trusted. You can refer to the procedure in th following thread:
http://www.javaranch.com/ubb/Forum23/HTML/001052.html

--------------
Amit
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"chsvramesh",
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please log in with a new name which meets the requirements.
Thanks
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am moving this to the "Applets" forum.
Just so that this will serve as a reference
to other ranchers.
Please continue the discussion in that forum.
Thanks.
- satya
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic