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 defined.
cacerts
JAVA_HOME
JRE_HOME
I need a solution that works at least for OS X and Linux.
OS X
Linux
Yes. java -v is assumed to work :)
java -v