简体   繁体   中英

Where is the java.security file located on Windows?

I need to locate and edit the java.security file on a Windows 7 host. Where is it located in a default Oracle JRE installation?

For the Oracle JRE, on my Windows 7 system java.security is in the following location:

C:\Program Files\Java\jre7\lib\security

By the way for the JDK, should you need it, it's in:

C:\Program Files\Java\<jdk_version>\jre\lib\security 

eg C:\\Program Files\\Java\\jdk1.7.0_40\\jre\\lib\\security

您应该在JRE_HOME\\lib\\security找到它,因为默认情况下JRE_HOME应该是c:\\Program Files\\Java\\jre${version-id}

Did you try the first link in google ? http://docs.oracle.com/javase/7/docs/technotes/guides/security/PolicyFiles.html

Policy file locations are specified in the security properties file, which is located at
    java.home/lib/security/java.security  (Solaris/Linux)
    java.home\lib\security\java.security  **(Windows)**

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM