can't execute an applet that's inside a package [message #142971] |
Tue, 14 March 2006 09:46 |
Eclipse User |
|
|
|
Originally posted by: triglian.gmail.com
hey...
Im working on a package of Swing classes which among other contains a
swing applet.
I want to launch the applet using iexplorer. the classes of the
package(the package was created automatically by eclipse using the
available option)are inside a file called
"testpack"("../workspace/testing/testpack").
An "test.html" file that i use to launch the applet is just in the upper
directory ("../workspace/testing").
i write code="testpack.CreateNodeSAIDemo.class" in the html code of
"test.html"
to access the applet class.
When i run it in ie i get the following exception:
java.security.AccessControlException: access denied
(java.lang.RuntimePermission exitVM)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkExit(Unknown Source)
at javax.swing.JFrame.setDefaultCloseOperation(Unknown Source)
at testpack.CreateNodeSAIDemo.<init>(CreateNodeSAIDemo.java:13)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Nativ e Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknow n Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Un known
Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
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)
Exception in thread "Thread-4" java.lang.NullPointerException
at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)
at sun.plugin.AppletViewer.showAppletException(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
java.lang.NullPointerException
at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)
at sun.plugin.AppletViewer.showAppletStatus(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception in thread "thread applet-testpack.CreateNodeSAIDemo.class"
java.lang.NullPointerException
at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)
at sun.plugin.AppletViewer.showAppletException(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
I don't know what to do to make it work.
I've tried:
grant codeBase "file:C:\RU6/workspace/testing/testpack/*"{
permission java.security.AllPermission;
};
grant codeBase "file:C:\RU6\workspace\testing\*"{
permission java.security.AllPermission;
};
but still it doesn't work
Any help would be very much appreciated
|
|
|
Powered by
FUDForum. Page generated in 0.07815 seconds