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

前端 未结 5 1704
生来不讨喜
生来不讨喜 2021-01-02 01:11

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

相关标签:
5条回答
  • 2021-01-02 01:38

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

    /Library/Java/Home/lib/security
    
    0 讨论(0)
  • 2021-01-02 01:50

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

    0 讨论(0)
  • 2021-01-02 01:52

    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
    
    0 讨论(0)
  • 2021-01-02 01:52
    /Library/Java/JavaVirtualMachines/jdk1.8.0_231.jdk/Contents/Home/jre/lib/security
    
    0 讨论(0)
  • 2021-01-02 01:53

    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

    0 讨论(0)
提交回复
热议问题