title: Java applet runs locally but not on the host
body: <p>I have written an applet application and integrate it to run under a webpage. It runs properly when I am running the webpage as local HTML file (using file:/// protocol). But when I am running it on a host (tested with <a href="http://localhost" rel="nofollow">http://localhost</a> using XAMPP), it does not work anymore and through exception of ClassNotFound.</p>
  
  <p>My applet classes are packaged under a *.jar file. Is not the jar file loaded in this case? Can anyone give me a suggestion that what can I do to deal with this problem?</p>
  
  <hr>
  
  <h2>Update</h2>
  
  <p>I have uploaded the jar file into the same folder as the HTML file. In my case, they are in the DocumentRoot of the Apache server. I can double-click on the HTML file, it works. </p>
  
  <p>But when I query like: localhost/test.html, it does not. My code: </p>
  
  <pre><code>&lt;applet 
      code="package/ClassName.class" 
      archive="appletfile.jar"&gt;
  &lt;/applet&gt;
  </code></pre>
  
  <p>I can able load the jar file by: localhost/appletfile.jar </p>