title: Java web start showing classnotfound exception
body: <p>I am new to Java Web Start, I've created a <em>swing</em> interface with a button and tried to open this using a <em>jnlp</em> using <em>Tomcat</em>.I placed both these together in <code>tomcathome\webapps\ROOT</code> folder.
  While trying to launch the jar using <em>jnlp</em> its showing error like </p>
  
  <pre><code>java.lang.ClassNotFoundException: com.kucc.FirstExample
      at java.net.URLClassLoader$1.run(Unknown Source)
      at java.net.URLClassLoader$1.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(Unknown Source)
      at com.sun.jnlp.JNLPClassLoader.findClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
      at com.sun.javaws.Launcher.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
  </code></pre>
  
  <p>The jar executes correctly when accessed as standalone. My <em>jnlp</em> file is as </p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; 
  &lt;jnlp spec="1.0+" codebase="http://localhost:9999/" href="Sample.jnlp"&gt;
      &lt;information&gt;
          &lt;title&gt;Jnlp Testing&lt;/title&gt;
          &lt;vendor&gt;kucc&lt;/vendor&gt;
          &lt;homepage href="http://localhost:9999/" /&gt;
          &lt;description&gt;Testing Testing&lt;/description&gt;
      &lt;/information&gt;  
      &lt;resources&gt;
          &lt;j2se version="1.7" /`&gt;
          &lt;jar href="FirstExample.jar" main="true"/&gt;
      &lt;/resources&gt;
      &lt;application-desc main-class="com.kucc.FirstExample" /&gt;
  &lt;/jnlp&gt;
  </code></pre>
  
  <p><em>FirstExample.jar</em> is packaged correctly with thecorrect package structure <em>com.kucc.FirstExample</em></p>
  
  <p>Should I do any configuration specific to <em>TomCat</em> ?</p>
  
  <p>Can somebody help ?</p>