title: Java command line error (could not find or load main class)
body: <p>When attempting to run the below command:</p>
  
  <pre><code>java -classpath mycompanychecks.jar:checkstyle-5.7-all.jar \
   com.puppycrawl.tools.checkstyle.Main \
   -c config.xml -r .
  </code></pre>
  
  <p>I get the error:</p>
  
  <pre><code>Error: Could not find or load main class \
  </code></pre>
  
  <p>In the directory that I'm running the command from I do have the two jar files, and also I have checked that '<code>com.puppycrawl.tools.checkstyle.Main</code>' does in fact reside in the '<code>checkstyle-5.7-all.jar</code>'. As the error seems to refer to the backslash maybe it's a syntactical error? However I'm executing the command exactly as stated on the <a href="http://checkstyle.sourceforge.net/writingchecks.html#Integrate_your_Check" rel="nofollow">checkstyle page</a>.</p>