On the command-line, how can I see all the folders and files comprising my current Java classpath?
The Oracle Tutorial says to use echo $CLASSPATH
on Unix-like systems. But on a Mac (El Capitan) with Java 8 that prints nothing. As I recall, by default the CLASSPATH
environment variable is not used on macOS.
I saw some Questions such as this that show setting the classpath, but I just want to verify the classpath.
Is there some easy way from the command-line to examine the current classpath?