运行java程序时,报错: java.security.AccessControlException: access denied("java.lang.RuntimePermission", "getClassLoader") JDK有一些安全限制,可以修改配置文件文件jdk目录/conf/security下java.policy,
运行java程序时,报错:
java.security.AccessControlException: access denied("java.lang.RuntimePermission", "getClassLoader")JDK有一些安全限制,可以修改配置文件文件jdk目录/conf/security下java.policy,禁用这些限制:
permission java.lang.RuntimePermission "getClassLoader";permission java.lang.RuntimePermission "createClassLoader";
permission java.lang.RuntimePermission "setContextClassLoader";