STW
STW

Reputation: 46386

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?

Upvotes: 9

Views: 37123

Answers (3)

J.Mengelle
J.Mengelle

Reputation: 341

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)**

Upvotes: 1

gothytim
gothytim

Reputation: 71

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 

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

Upvotes: 5

Nicolas Filotto
Nicolas Filotto

Reputation: 44995

You should find it in JRE_HOME\lib\security knowing that by default JRE_HOME should be c:\Program Files\Java\jre${version-id}

Upvotes: 4

Related Questions