Print the Java Classpath on macOS (Mac OS X)
<p>On the command-line, how can I see all the folders and files comprising my current <a href="https://en.wikipedia.org/wiki/Classpath_%28Java%29" rel="nofollow noreferrer">Java classpath</a>?</p>

<p>The <a href="https://docs.oracle.com/javase/tutorial/essential/environment/paths.html" rel="nofollow noreferrer">Oracle Tutorial</a> says to use <code>echo $CLASSPATH</code> on Unix-like systems. But on a Mac (El Capitan) with Java 8 that prints nothing. As I recall, by default the <code>CLASSPATH</code> environment variable is not used on macOS.</p>

<p>I saw some Questions such as <a href="https://stackoverflow.com/questions/4729863/using-bash-how-do-you-make-a-classpath-out-of-all-files-in-a-directory/4729899#4729899">this</a> that show <em>setting</em> the classpath, but I just want to <em>verify</em> the classpath.</p>

<p>Is there some easy way from the command-line to examine the current classpath?</p>