title: Could not find or load main class on linux
body: <p>I've a standalone application that have the following files:</p>
  
  <ul>
  <li>main.jar  : the main jar file </li>
  <li>lib/*.jar : all dependencies</li>
  </ul>
  
  <p>Under windows, I run the following command with success:</p>
  
  <blockquote>
    <p>java -cp "main.jar;lib/*" com.ca.Main</p>
  </blockquote>
  
  <p>No problem the application runs fine. However, on linux operating system, the command fails with the following message:</p>
  
  <blockquote>
    <p>Error: Could not find or load main class com.ca.Main</p>
  </blockquote>
  
  <p>If I run </p>
  
  <pre><code>java -cp "main.jar" com.ca.Main
  </code></pre>
  
  <p>JAVA finds the main class but not the dependencies located in lib/</p>
  
  <p>Any idea of what's wrong with linux ? Is there something to do specific to linux ?</p>
  
  <p>Thanks</p>