| | |
JAVA Permission Blues.. :(
![]() |
•
•
Join Date: Dec 2004
Posts: 1
Reputation:
Solved Threads: 0
Hello all,
I have the following exception: java.security.AccessControlException: access denied (java.io.FilePermission blahblah.. myfile.gif read etc...
my code: JButton myButton = new JButton(new ImageIcon("myfile.gif"));
I added the ff to my java.policy file
grant codeBase "my domain-" {
permission java.security.AllPermission;
permission java.io.FilePermission "<<ALL FILES>>", "read, write";
};
No go
Did I miss something?
This is just a temporary thing, what I would like ideally is that my applet runs smoothly without having to change the java.policy file for every client
How do I do that? I've read about signing applets, etc but I'd rather not do that.. is there any other way?
Thanks a lot!
I have the following exception: java.security.AccessControlException: access denied (java.io.FilePermission blahblah.. myfile.gif read etc...
my code: JButton myButton = new JButton(new ImageIcon("myfile.gif"));
I added the ff to my java.policy file
grant codeBase "my domain-" {
permission java.security.AllPermission;
permission java.io.FilePermission "<<ALL FILES>>", "read, write";
};
No go

Did I miss something?
This is just a temporary thing, what I would like ideally is that my applet runs smoothly without having to change the java.policy file for every client
How do I do that? I've read about signing applets, etc but I'd rather not do that.. is there any other way?Thanks a lot!
![]() |
Similar Threads
- FT Junior Java Developer Needed for Major Media firm in NYC (Software Development Job Offers)
- Very Suspicious DLL (Viruses, Spyware and other Nasties)
- Java (Computer Science)
- Java can produce V!ru$ ? (Java)
- Java Problem (Windows NT / 2000 / XP)
- Security Settings -> Java permission -> Custom (radio button) -> Java Custom Settings (Web Browsers)
Other Threads in the Java Forum
- Previous Thread: Thread tutorial link
- Next Thread: Need Help Figuring out errors
| Thread Tools | Search this Thread |
-xlint add android api applet application array automation bank bi binary blackberry block bluetooth class client code compile compiler component database developmenthelp dice eclipse equation error event fractal functiontesting game gameprogramming givemetehcodez graphics gui health html hyper ide idea image infinite int j2me j2seprojects java javac javame javaprojects jetbrains jni jpanel jtable julia learningresources lego linux mac main map method mobile myregfun netbeans notdisplaying number online openjavafx pearl problem program project qt scanner screen scrollbar server set singleton sms sort sorting spamblocker sql sqlserver storm string superclass swing system textfields thread threads time title tree tutorial-sample update variablebinding windows xor






