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

╄→гoц情女王★ 提交于 2019-12-18 21:11:06

问题


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


回答1:


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

/Library/Java/Home/lib/security



回答2:


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




回答3:


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



回答4:


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? ;)



来源:https://stackoverflow.com/questions/8409069/where-is-the-jre-lib-security-directory-on-mac-os-x

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!