|
ISO Java Help
|
View this Thread in Original format
| mezzir |
My comp sci class ends next week and I was planning on doing some work over the weekend, so i emailed myself all the files and they're compiling fine, but when i go to run it i get:
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 java.util.TimerThread.(Unknown Source)
at java.util.Timer.(Unknown Source)
at PacMan.start(PacMan.java:42)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
wtf? |
|
|
| milanster |
r u running it at home? coz maybe u dont have enough permissions...
my project doesnt run in full screen mode at skool coz of stupid permissions |
|
|
| nchs09 |
ahhh... errr.... mmmmm.... ahhh
NERD |
|
|
| k.k.d. |
Um. Basically means that in your code you are doing an illegal operation on a thread object (or a threadgroup object, whichever)...
Don't forget that Java is synonimous with "secure", and explicitelly prevents some of the practices that would of been okay with an other language. For example, considering this is an applet you're running, you should remember that you cannot access data or classes from a foreign domain, short of creating a socket and having the other side stream the data (lol)...
Which comes to the question: are you sure it was working in the first place? :) |
|
|
| mezzir |
| quote: | | Originally posted by k.k.d. Which comes to the question: are you sure it was working in the first place? :) |
yes, positive |
|
|
| cviper |
| Well, what are you doing in PacMan.java on line 42? According to the exception posted, that's the source of trouble... ;) |
|
|
| mezzir |
| quote: | Originally posted by cviper
Well, what are you doing in PacMan.java on line 42? According to the exception posted, that's the source of trouble... ;) |
holy how did i miss that
i just saw like 10 lines of stuff i didn't understand and i panicked :p
and line 42:
normalTimer = new Timer();
so still wtf |
|
|
|
|