Applets can't set thread priority without being signed with a security
policy that allows it.

-Keith

Flavius Alecu wrote:
ok, I have a regular applet embedded into a html file..I run that file
throught he appletviewer with the command: "appletviewer applet.html"

everything works fine except for when I terminate the program I get an
exception about the thread:
"java.security.AccessControlException: access denied
(java.lang.RuntimePermissionmodifyThread)"

I get this because in my run() method I have the following
line: "Thread.currentThread().setPriority(Thread.MAX_PRIORITY);"

I do have a line where I set the MIN_PRIORITY flag too, but I don't get an
exception for that one...

what could be wrong??

Thanx

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

=========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA2D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to