title: How to obtain the location of cacerts of the default java installation?
body: <p>I am looking on how how to obtain the location of <code>cacerts</code> of the default java installation, when you do not have <code>JAVA_HOME</code> or <code>JRE_HOME</code> defined.</p>
  
  <p>I need a solution that works at least for <code>OS X</code> and <code>Linux</code>.</p>
  
  <p>Yes. <code>java -v</code> is assumed to work :)</p>