我需要在Windows 7主机上找到并编辑
java.security
文件。在默认的Oracle JRE安装中,它位于哪里?对于Oracle JRE,在我的Windows 7系统中,java.security
位于以下位置:
C:\Program Files\Java\jre7\lib\security
C:\Program Files\Java\<jdk_version>\jre\lib\security
C:\Program Files\Java\jdk1.7.0_40\jre\lib\security
默认情况下,JRE_HOME
应该是 c:\Program Files\Java\jre${version-id}
,你应该在 JRE_HOME\lib\security
找到它。
https://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)**