title: Java Applet using jacob to load com dll method getting Errormessage : NoClassDefFoundError: com/jacob/activeX/ActiveXComponent
body: <p>I need to create an Applet that can load a com method, for this purpose I used the java com bridge (jacob) deal with the com dll, and My Environment is set as follow:</p>
  
  <ul>
  <li>os:win7x64</li>
  <li>IDE:Eclipse32bit-version</li>
  <li>COM DLL:BPIKeyCOM.dll 32-bit version</li>
  <li>com bridge : jacob1.17-32bit version  </li>
  <li>server: Tomcatv7.0</li>
  </ul>
  
  <p>I put jacob.dll under C:\Windows\System32 and jacob.jar under WEB-INF\lib</p>
  
  <p>When I run the project, it's working fine in Eclipse. But when deployed on the web, the following error messages appear:</p>
  
  <pre><code>java.lang.NoClassDefFoundError: com/jacob/activeX/ActiveXComponent
  at Fmain.Ikeycheck(Fmain.java:180)
  at Fmain.init(Fmain.java:73)
  at sun.applet.AppletPanel.run(AppletPanel.java:435)
  at java.lang.Thread.run(Thread.java:724)
  
  Caused by:
  java.lang.ClassNotFoundException: com.jacob.activeX.ActiveXComponent
  at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:219)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
  at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:152)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:357)...
  </code></pre>
  
  <p>It looks like this message is talking about that it can't find <code>com/jacob/activeX/ActiveXComponent.class</code>, but I don't understand how.</p>
  
  <p>I've already searched for many solutions and tried to solve it, but it still keeps showing this error message, I use to do sigh jar, make sure the classpath is correct, and even try to change the policy file...etc. But still, it's not working!</p>