title: problem with running java code in cmd windows
body: <p>I want to run <code>DepthFirstSearch.java</code> from the following website:
  <a href="https://algs4.cs.princeton.edu/code/edu/princeton/cs/algs4/DepthFirstSearch.java" rel="nofollow noreferrer">https://algs4.cs.princeton.edu/code/edu/princeton/cs/algs4/DepthFirstSearch.java</a></p>
  
  <p>I put it in a folder new with the <code>algs4.jar</code> from the above website. I use the following to compile in WINDOWS:
  <code>javac -cp algs4.jar DepthFirstSearch.java</code> which compiles correctly. However, when I run 
  <code>java -cp algs4.jar DepthFirstSearch</code>
  I get the error that main class could not found or load.
  Does anyone know how I can solve this?
  Best Regards,</p>