bethesdaboys
bethesdaboys

Reputation: 1827

Where is the JRE lib/security directory on Mac OS X?

I need to generate a cert and can't find this directory. Thanks!

Upvotes: 14

Views: 40254

Answers (5)

/Library/Java/JavaVirtualMachines/jdk1.8.0_231.jdk/Contents/Home/jre/lib/security

Upvotes: 0

Pete Kowalsky
Pete Kowalsky

Reputation: 31

The location I've found on MacOS Mojave with jre 1.8.0 is:

/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/security

I was not trying to do any Java certificate-store stuff but needed to tweak some security settings for an applet.

Also, can you believe it's 2019 and we're still messing with this crap? ;)

Upvotes: 2

Mickael Tardy
Mickael Tardy

Reputation: 341

The following works for 10.11.6

/Library/Java/Home/jre/lib/security

It's actually just a link to the

/Library/Java/JavaVirtualMachines/.../Contents/Home/jre/lib/security

Upvotes: 6

Lorin Hochstein
Lorin Hochstein

Reputation: 59222

On Mavericks (OS X 10.10) with Oracle Java 8, it appears to be:

/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/jre/lib/security

Upvotes: 41

Shaun
Shaun

Reputation: 2476

I believe the equivalent directory to jre/lib/security under OS X is:

/Library/Java/Home/lib/security

Upvotes: 21

Related Questions