title: Running java applet in ASP.NET MVC application
body: <p>I have a applet that runs with no issue in asp.net web application ... 
  but when comes to ASP.MVC application ..here applet is not working throwing class not founnd exception 
  please let me know if anyone could able to run applet in MVC application .. below is the code from view </p>
  
  <pre><code>&lt;object  classid="clsid:8AD9C840-044E-11D1-B3E9-00805F4345D93" 
     codebase="http://java.sun.com/update/1.6.0/jinstall-6u11-windows-i586.cab#Version=6,0,0,11"                            id="DeviceControl"&gt;                            
  
      &lt;param name="java_arguments" value="-Xmx256m" /&gt;
      &lt;param name="CODE" value="/com/XYZ/application/main/SomeApplet.class" /&gt;                            
      &lt;param name="archive" value="all jar path" /&gt;  
      &lt;param name="type" value="application/x-java-applet;version=1.6" /&gt;                            
      &lt;param name="scriptable" value="true" /&gt;
      &lt;param name="mayscript" value="true" /&gt;
  &lt;/object&gt;
  </code></pre>
  
  <p>exception that i am gettting is </p>
  
  <p>load: class com.AppName.scanner.main.ScannerApplet.class not found.
  java.lang.ClassNotFoundException: com.XYZ.application.main.SomeApplet.class
  at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
  at java.lang.ClassLoader.loadClass(Unknown Source)
  at java.lang.ClassLoader.loadClass(Unknown Source)
  at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
  at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
  at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
  at java.lang.Thread.run(Unknown Source)
  Caused by: java.io.IOException: open HTTP connection failed:<a href="http://localhost:3213/Appname/com/XYZ/application/main/SomeApplet/class" rel="nofollow noreferrer">http://localhost:3213/Appname/com/XYZ/application/main/SomeApplet/class</a> at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
  at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
  at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
  at java.security.AccessController.doPrivileged(Native Method)
  ... 7 more </p>