ChrisMacPherson
Programmer
Hi,
I am getting this error when trying to run a few different examples taken from the net which create simple applets and try to create a thread.
java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThreadGroup)
code is as below
I took these examples from good tutorials so am stumped why they dont work. Have also been searching for answers for ages so any help would be great.
I am running netbeans 4, j2se 1.5
Chris MacPherson
I am getting this error when trying to run a few different examples taken from the net which create simple applets and try to create a thread.
java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThreadGroup)
code is as below
Code:
private Thread th = null;
public void start() {
if (th == null) {
th = new Thread(this); << error hits here
th.start();
}
}
I took these examples from good tutorials so am stumped why they dont work. Have also been searching for answers for ages so any help would be great.
I am running netbeans 4, j2se 1.5
Chris MacPherson