while run a java app with security manager,it just simply failed,we need more information.invoke app with following parameters:
java -Djava.security.manager -Djava.security.debug=access:failure
then we get following result:
About to get os.name property value
access: access allowed (java.lang.reflect.ReflectPermission suppressAccessChecks)
access: access allowed (java.security.SecurityPermission getProperty.policy.expandProperties)
access: access allowed (java.security.SecurityPermission getProperty.policy.ignoreIdentityScope)
access: access allowed (java.security.SecurityPermission getProperty.policy.allowSystemProperty)
access: access allowed (java.util.PropertyPermission sun.security.policy.utf8 read)
access: access allowed (java.util.PropertyPermission sun.security.policy.numcaches read)
access: access allowed (java.util.PropertyPermission java.security.policy read)
access: access allowed (java.security.SecurityPermission getProperty.policy.url.1)
access: access allowed (java.util.PropertyPermission java.home read)
access: access allowed (java.io.FilePermission C:\Program Files (x86)\Java\jdk1.6.0_30\jre\lib\security\java.policy read)
access: access allowed (java.io.FilePermission C:\Program Files (x86)\Java\jdk1.6.0_30\jre\lib\security\java.policy read)
access: access allowed (java.io.FilePermission C:\Program Files (x86)\Java\jdk1.6.0_30\jre\lib\security\java.policy read)
access: access allowed (java.io.FilePermission C:\Program Files (x86)\Java\jdk1.6.0_30\jre\lib\security\java.policy read)
access: access allowed (java.lang.reflect.ReflectPermission suppressAccessChecks)
access: access allowed (java.util.PropertyPermission java.ext.dirs read)
access: access allowed (java.io.FilePermission C:\Program Files (x86)\Java\jdk1.6.0_30\jre\lib\ext\* read)
access: access allowed (java.io.FilePermission C:\Windows\Sun\Java\lib\ext\* read)
access: access allowed (java.security.SecurityPermission getProperty.policy.url.2)
access: access allowed (java.util.PropertyPermission user.home read)
access: access allowed (java.io.FilePermission C:\Users\dwei\.java.policy read)
access: access allowed (java.io.FilePermission C:\Users\dwei\.java.policy read)
access: access allowed (java.io.FilePermission C:\Users\dwei\.java.policy read)
access: access allowed (java.security.SecurityPermission getProperty.policy.url.3)
access: access allowed (java.util.PropertyPermission java.home read)
access: access allowed (java.io.FilePermission C:\Program Files (x86)\Java\jdk1.6.0_30\jre\lib\security\examplepolicy read)
access: access allowed (java.io.FilePermission C:\Program Files (x86)\Java\jdk1.6.0_30\jre\lib\security\examplepolicy read)
access: access allowed (java.util.PropertyPermission java.protocol.handler.pkgs read)
access: access allowed (java.lang.reflect.ReflectPermission suppressAccessChecks)
access: access allowed (java.util.PropertyPermission java.util.logging.manager read)
access: access allowed (java.lang.RuntimePermission setContextClassLoader)
access: access allowed (java.lang.RuntimePermission shutdownHooks)
access: access allowed (java.util.logging.LoggingPermission control)
access: access allowed (java.util.PropertyPermission java.util.logging.config.class read)
access: access allowed (java.util.PropertyPermission java.util.logging.config.file read)
access: access allowed (java.util.PropertyPermission java.home read)
access: access allowed (java.io.FilePermission C:\Program Files (x86)\Java\jdk1.6.0_30\jre\lib\logging.properties read)
access: access allowed (java.io.FilePermission C:\Program Files (x86)\Java\jdk1.6.0_30\jre\lib\logging.properties read)
access: access allowed (java.io.FilePermission C:\Program Files (x86)\Java\jdk1.6.0_30\jre\lib\logging.properties read)
access: access allowed (java.util.logging.LoggingPermission control)
access: access allowed (java.util.logging.LoggingPermission control)
access: access allowed (java.util.logging.LoggingPermission control)
access: access allowed (java.util.logging.LoggingPermission control)
access: access allowed (java.util.logging.LoggingPermission control)
access: access allowed (java.util.logging.LoggingPermission control)
access: access allowed (java.util.PropertyPermission http.maxRedirects read)
access: access allowed (java.util.PropertyPermission java.version read)
access: access allowed (java.util.PropertyPermission http.agent read)
access: access allowed (java.util.PropertyPermission http.auth.digest.validateProxy read)
access: access allowed (java.util.PropertyPermission http.auth.digest.validateServer read)
access: access allowed (java.util.PropertyPermission sun.net.http.errorstream.enableBuffering read)
access: access allowed (java.util.PropertyPermission sun.net.http.errorstream.timeout read)
access: access allowed (java.util.PropertyPermission sun.net.http.errorstream.bufferSize read)
access: access allowed (java.util.PropertyPermission sun.net.http.allowRestrictedHeaders read)
access: access allowed (java.util.PropertyPermission http.auth.serializeRequests read)
access: access allowed (java.util.PropertyPermission http.auth.ntlm.domain read)
access: access allowed (java.net.NetPermission getCookieHandler)
access: access allowed (java.net.NetPermission getResponseCache)
access: access allowed (java.util.PropertyPermission user.dir read)
access: access allowed (java.io.FilePermission C:\test read)
access: access allowed (java.security.SecurityPermission getProperty.policy.url.4)
access: access allowed (java.util.PropertyPermission java.security.auth.policy read)
access: access allowed (java.security.SecurityPermission getProperty.auth.policy.url.1)
access: access allowed (java.io.FilePermission C:\test read)
The name of your operating system is: Windows 7
About to get java.version property value
access: access allowed (java.util.PropertyPermission java.version read)
The version of the JVM you are running is: 1.6.0_30
About to get user.home property value
access: access allowed (java.util.PropertyPermission user.home read)
Your user home directory is: C:\Users\dwei
About to get java.home property value
access: access allowed (java.util.PropertyPermission java.home read)
Your JRE installation directory is: C:\Program Files (x86)\Java\jdk1.6.0_30\jre