| | |
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 |
6 actuate android api applet application applications array arrays automation balls bank binary bluetooth bold business c++ chat class clear client code codesnippet collections component coordinates database defaultmethod development dice doctype dragging ebook eclipse educational error file formatingtextintooltipjava fractal froglogic game givemetehcodez graphics gui hql html ide ideas image infinite ingres integer intersect invokingapacheantprogrammatically j2me java javaexcel javaprojects jni jpanel jtextarea julia linux list map method methods mobile mysql netbeans openjavafx parameter php problem program programming project recursion repositories scanner scrollbar sell server set sms sort sorting sql sqlserver state storm string sun superclass swing swt threads tree websites windows






