I have an application consisting of some JFrames and threads ,and other classes as well. I developed it as ordinary application, having in mind to re-make it to be applet.
I have launching file with just about one line of code launching Client JFrame.
This launching file itself was just a java application,not a JFrame. I remade it so that it would extend JAppet.
After I run it in NetBeans 6.1 it worked fine with this JApplet.But when I went and tried to launch the html file that NetBeans made for me it didn't work at all,showing lots of errors when I clicked on "details".
This is list of errors I got
Expand|Select|Wrap|Line Numbers
- java.security.AccessControlException: access denied (java.lang.RuntimePermission exitVM.0)
- 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 chessserver.Client.initComponents(Client.java:103)
- at chessserver.Client.<init>(Client.java:39)
- at chessserver.LaunchClient.init(LaunchClient.java:21)
- at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
- at java.lang.Thread.run(Unknown Source)
- Exception: java.security.AccessControlException: access denied (java.lang.RuntimePermission exitVM.0)
Help is extremely appreciated.
Val.