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:

HTML converter proggie

Posted by Robert on December 20, 2001 at 8:53 AM

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

I'm making a Java Swing applet, and I ran into the same problem. The soloution was to go to this URL:
http://java.sun.com/products/plugin/1.3/docs/html_converter.html
and download the converter. It converts the standard APPLET tag that you have in your HTML into something that will work across all browsers.

The zip file seems to have a bug in it such that under linux the directories are not executable. Fix that with a chmod -R u+x * and then java HTMLConverter and you'll be on your way.

Cheers,

Rob.



Replies:

Sponsored Links



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