title: How to debug classpath command line option (-cp) for java executable?
body: <p>I want to execute the java executable (Open JDK 11.0.2) on <strong>Windows</strong> from command line and I am not sure if I specify the class path option correctly, e.g. </p>
  
  <pre class="lang-none prettyprint-override"><code>java -cp "./foo_\*/*" -version
  </code></pre>
  
  <p>How can I print a list of all <strong>files</strong> that can be found by java on the given class path?</p>
  
  <p>Is there something like</p>
  
  <pre class="lang-none prettyprint-override"><code>echo java -cp "./foo_\*/*"
  </code></pre>
  
  <p>or </p>
  
  <pre class="lang-none prettyprint-override"><code>java -debug -cp "./foo_\*/*" -version
  </code></pre>