How to obtain the location of cacerts of the default java installation?

前端 未结 6 667
情书的邮戳
情书的邮戳 2020-12-02 09:56

I am looking on how how to obtain the location of cacerts of the default java installation, when you do not have JAVA_HOME or JRE_HOME

6条回答
  •  时光说笑
    2020-12-02 10:13

    In MacOS Mojave, the location is:

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

    If using sdkman to manage java versions, the cacerts is in

    ~/.sdkman/candidates/java/current/jre/lib/security
    

提交回复
热议问题