簡體   English   中英

java.security.AccessControlException:在瀏覽器上運行小程序時,訪問被拒絕

[英]java.security.AccessControlException: access denied when running applet on browser

嘗試在瀏覽器中運行小程序時出現以下錯誤。 有問題的小程序中包含文件訪問代碼:

java.security.AccessControlException:訪問被拒絕(java.lang.RuntimePermission getenv.RGENGINEJAVA)在java.security.AccessControlContext.checkPermission(未知源)在java.security.AccessController.checkPermission(未知源)在java.lang.SecurityManager.checkPermission (未知源)在java.lang.System.getenv(未知源)在com.socp.components.SOCPMapViewer.bootstrapArcobjectsJar(SOCPMapViewer.java:668)在com.socp.components.SOCPMapViewer.init(SOCPMapViewer.java:130)在sun.plugin2.applet.Plugin2Manager $ AppletExecutionRunnable.run(未知源)處,java.lang.Thread.run(未知源)處的異常:java.security.AccessControlException:訪問被拒絕(java.lang.RuntimePermission getenv.RGSENGINEJAVA)

從Elipse IDE調用時,該applet正常運行,但是當我使用HTML文件在瀏覽器中運行該applet時,出現上述錯誤。 請幫助我解決此問題。 告訴我如何在HTML上下文中授予以下權限文件:

grant {
  permission java.security.AllPermission;
};

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM