Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic java.security.AccessControlException (Read 1843 times)
hump.O
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 4
Joined: Feb 26th, 2010
java.security.AccessControlException
Feb 27th, 2010 at 11:36am
Print Post  
Hi,

I've a problem with placing an applet on exemplary html page.

I've class that extends JApplet and is using JDiagram components and I try to settle it in html like this.

[code]<applet code=project.jdiagram.frames.DiagramFrame.class width="200" height="200" archive="JDiagram.jar" >[/code]

Naturaly compiled class and JDiagram.jar are placed in properly directory.

For Applet I've set permissions in java.policy.applet

[code]grant {

permission java.security.AllPermission;
}; [/code]

When I try to open a page I get exception:

[code]Exception: java.security.AccessControlException: access denied (java.io.FilePermission C:\Users\hump\Documents read)
[/code]

When I run applet like a appet application i Eclipse there is no problem.

Any ideas?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: java.security.AccessControlException
Reply #1 - Feb 27th, 2010 at 11:53am
Print Post  
Hi,

Does your applet try to open a file from the local file system? Could you copy here the full stack trace?

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint