title: Launch4j doesn't work (main class not found)
body: <p>I am using Launch4j to create an setup file. I have 7 classes, under a package. And JavaSamp is my main class. I have created jar files for all the classes. And my launch4j looks like this:</p>
  
  <pre><code> &lt;launch4jConfig&gt;
    &lt;dontWrapJar&gt;true&lt;/dontWrapJar&gt;
    &lt;headerType&gt;gui&lt;/headerType&gt;
    &lt;jar&gt;&lt;/jar&gt;
    &lt;outfile&gt;install\Piratechx.exe&lt;/outfile&gt;
    &lt;errTitle&gt;&lt;/errTitle&gt;
    &lt;cmdLine&gt;&lt;/cmdLine&gt;
    &lt;chdir&gt;.&lt;/chdir&gt;
    &lt;priority&gt;normal&lt;/priority&gt;
    &lt;downloadUrl&gt;http://java.com/download&lt;/downloadUrl&gt;
    &lt;supportUrl&gt;&lt;/supportUrl&gt;
    &lt;customProcName&gt;true&lt;/customProcName&gt;
    &lt;stayAlive&gt;false&lt;/stayAlive&gt;
    &lt;manifest&gt;&lt;/manifest&gt;
    &lt;icon&gt;&lt;/icon&gt;
    &lt;classPath&gt;
      &lt;mainClass&gt;JavaSamp&lt;/mainClass&gt;
      &lt;cp&gt;lib/JavaSamp.jar&lt;/cp&gt;
      &lt;cp&gt;lib/DataBaseHelper.jar&lt;/cp&gt;
      &lt;cp&gt;lib/JavaDemo.jar&lt;/cp&gt;
      &lt;cp&gt;lib/FileEncryption.jar&lt;/cp&gt;
      &lt;cp&gt;lib/SendEmail.jar&lt;/cp&gt;
      &lt;cp&gt;lib/WriterHelper&lt;/cp&gt;
    &lt;/classPath&gt;
    &lt;jre&gt;
      &lt;path&gt;jre6&lt;/path&gt;
      &lt;minVersion&gt;&lt;/minVersion&gt;
      &lt;maxVersion&gt;&lt;/maxVersion&gt;
      &lt;jdkPreference&gt;jreOnly&lt;/jdkPreference&gt;
    &lt;/jre&gt;
    &lt;versionInfo&gt;
      &lt;fileVersion&gt;1.0.0.0&lt;/fileVersion&gt;
      &lt;txtFileVersion&gt;1.0&lt;/txtFileVersion&gt;
      &lt;fileDescription&gt;Piratechx&lt;/fileDescription&gt;
      &lt;copyright&gt;Copyright (c) 2007 FSP&lt;/copyright&gt;
      &lt;productVersion&gt;1.0.0.0&lt;/productVersion&gt;
      &lt;txtProductVersion&gt;1.0&lt;/txtProductVersion&gt;
      &lt;productName&gt;Piratechx&lt;/productName&gt;
      &lt;companyName&gt;FSP&lt;/companyName&gt;
      &lt;internalName&gt;Piratechx&lt;/internalName&gt;
      &lt;originalFilename&gt;Piratechx.exe&lt;/originalFilename&gt;
    &lt;/versionInfo&gt;
   &lt;/launch4jConfig&gt;
  </code></pre>
  
  <p>Any suggestion pls...</p>