当前位置: 技术问答>java相关
请帮我看看,我该怎么解决呀
来源: 互联网 发布时间:2015-01-07
本文导语: d:myworknetqqjspconfig.txt java.security.AccessControlException: access denied (java.util.PropertyPermission user.dir read) at java.security.AccessControlContext.checkPermission(Unknown Source) at java.security.AccessController.checkPermission(Unknown Source) at java....
d:myworknetqqjspconfig.txt
java.security.AccessControlException: access denied (java.util.PropertyPermission user.dir read)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
at java.lang.System.getProperty(Unknown Source)
at java.io.Win32FileSystem.getUserPath(Unknown Source)
at java.io.Win32FileSystem.resolve(Unknown Source)
at java.io.File.getAbsolutePath(Unknown Source)
at pack.DataSource.readConfigData(DataSource.java:163)
at pack.TestTree.myInit(TestTree.java:41)
at pack.TestTree.init(TestTree.java:28)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
java.security.AccessControlException: access denied (java.util.PropertyPermission user.dir read)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
at java.lang.System.getProperty(Unknown Source)
at java.io.Win32FileSystem.getUserPath(Unknown Source)
at java.io.Win32FileSystem.resolve(Unknown Source)
at java.io.File.getAbsolutePath(Unknown Source)
at pack.DataSource.readConfigData(DataSource.java:163)
at pack.TestTree.myInit(TestTree.java:41)
at pack.TestTree.init(TestTree.java:28)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
|
applet被限制对文件系统的访问。
|
把.jar文件放到JSP平台(如:tomcat)的lib目录,应该可以的,Try it!。
|
如果要使用第三方的类,你也需要将他们所在的路径加入到classpath中,否则自然是找不到的,就算是当前路径也不行。
另外,你问题的意思我不大明白,能否讲得详细一些,将你的操作过程也列出来。
另外,你问题的意思我不大明白,能否讲得详细一些,将你的操作过程也列出来。