tags:

views:

25

answers:

0

Hai ,

 I am getting the following error when i try to run an applet on browser.

My applet class contains file acces code with in it.

java.security.AccessControlException: access denied (java.lang.RuntimePermission getenv.RGENGINEJAVA) at java.security.AccessControlContext.checkPermission(Unknown Source) at java.security.AccessController.checkPermission(Unknown Source) at java.lang.SecurityManager.checkPermission(Unknown Source) at java.lang.System.getenv(Unknown Source) at com.socp.components.SOCPMapViewer.bootstrapArcobjectsJar(SOCPMapViewer.java:668) at com.socp.components.SOCPMapViewer.init(SOCPMapViewer.java:130) at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Exception: java.security.AccessControlException: access denied (java.lang.RuntimePermission getenv.RGSENGINEJAVA)

My applet is working fine when it is invoked from eclipse IDE ,But when i use HTML file to run my applet on browser ,It is giving the above given error.. Please help me to resolve this issue. Tell me how can i invoke the following permission file from HTML Tag, grant { permission java.security.AllPermission; };