title: Bizarre "NoClassDefFound" Error
body: <p>This one really has me stumped.</p>
  
  <p>Scenario:</p>
  
  <ul>
  <li>Windows 7 64-bit</li>
  <li>Lotus Notes (8.5.2) </li>
  <li>Eclipse Helios</li>
  <li>Java 6 Update 33 (64-bit) with JDK 7</li>
  <li>Installed JRE for the plugin project is set to use the JVM installed under Notes (that is, <code>C:\NotesDev\Notes\jvm</code>).</li>
  <li>Target Platform uses the installed JRE above, and imports the <code>framework\rcp\eclipse</code> and <code>framework\shared\eclipse</code> subfolders on the Locations tab. I can see that there are a total of 713 plugins available between the two folders.</li>
  <li>The Run Configuration shows a total of 714 plugins selected (which includes the 713 from the Target Platform, and mine). I can see that this list includes both <code>org.eclipse.swt.win32.win32.x86_3.5.2.v34557f-RCP20100710-0200.jar</code> and <code>com.ibm.rcp.swtex.win32_6.2.2.20100729-1241.jar</code>.</li>
  </ul>
  
  <p>The problem:</p>
  
  <ol>
  <li>If I do not explicitly include the two aforementioned JAR files in my build path, the application fails to compile (trying to import <code>org.eclipse.swt.widgets.Display</code> and <code>com.ibm.rcp.swt.swidgets.SToolItem</code>).</li>
  <li>If I include the aforementioned JAR files in the build path, the application compiles, but won't run, due to a <code>NoClassDefFound</code> exception.</li>
  </ol>
  
  <p>The questions:</p>
  
  <ol>
  <li>Why do I need to include these files in the first place? They are part of the workspace, and none of the other JAR files I'm referencing seem to need to be explicitly referenced.</li>
  <li>Why is this failing at run time? My understanding is that <code>NoClassDefFound</code> occurs because the class was available at compile time, but isn't at run time. But this is occurring on the same machine. (I'm trying to debug it locally, and I've even marked the JAR files for export!) </li>
  </ol>
  
  <p>It seems to me that if the files are listed in the Runtime Configuration's loaded plugins tab, I wouldn't have to explicitly reference them. Am I incorrect regarding this? (Please be kind! I'm admittedly not an expert at this.)</p>
  
  <p>Thanks in advance.</p>
  
  <p>P.S. It's worth noting that if I include the files in the build path, I can see that they are properly referenced in both <code>MANIFEST.MF</code> and the <code>.CLASSPATH</code> file.</p>
  
  <p><strong>MANIFEST.MF CONTENTS</strong></p>
  
  <pre><code>Manifest-Version: 1.0
  Bundle-ManifestVersion: 2
  Bundle-Name: Plugin
  Bundle-SymbolicName: com.satuit.crm.plugin;singleton:=true
  Bundle-Version: 1.0.0.qualifier
  Bundle-Activator: com.satuit.crm.plugin.Activator
  Bundle-Vendor: Satuit Technologies, Inc.
  Require-Bundle: org.eclipse.ui,
   org.eclipse.core.runtime,
   org.apache.axis,
   org.eclipse.ui;bundle-version="3.4.2",
   org.eclipse.core.runtime;bundle-version="3.4.0",
   org.eclipse.ui.views;bundle-version="3.3.1",
   com.ibm.rcp.jfaceex;bundle-version="6.2.2"
  Bundle-RequiredExecutionEnvironment: JavaSE-1.6
  Bundle-ActivationPolicy: lazy
  Export-Package: com.satuit.crm.plugin,
   com.satuit.crm.plugin.document,
   com.satuit.crm.plugin.ui,
   com.satuit.crm.webservice.agent
  Bundle-ClassPath: .,
   /NotesDev/Notes/framework/rcp/eclipse/plugins/org.eclipse.swt.win32.win32.x86_3.5.2.v3557f-RCP20100710-0200.jar,
   /NotesDev/Notes/framework/rcp/eclipse/plugins/com.ibm.rcp.swtex.win32_6.2.2.20100729-1241.jar,
   /NotesDev/lib/activation-1.1.1.jar,
   /NotesDev/lib/mail.jar,
   /NotesDev/lib/commons-lang3-3.1.jar,
   /NotesDev/lib/SatuitCRM_XML_API2.jar
  </code></pre>
  
  <p>** .CLASSPATH CONTENTS **</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;classpath&gt;
      &lt;classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/&gt;
      &lt;classpathentry exported="true" kind="con" path="org.eclipse.pde.core.requiredPlugins"/&gt;  
      &lt;classpathentry exported="true" kind="lib" path="C:/NotesDev/Notes/framework/rcp/eclipse/plugins/org.eclipse.swt.win32.win32.x86_3.5.2.v3557f-RCP20100710-0200.jar"/&gt;
      &lt;classpathentry exported="true" kind="lib" path="C:/NotesDev/Notes/framework/rcp/eclipse/plugins/com.ibm.rcp.swtex.win32_6.2.2.20100729-1241.jar"/&gt;
      &lt;classpathentry exported="true" kind="lib" path="C:/NotesDev/Workspace/lib/commons-lang3-3.1.jar"/&gt;
      &lt;classpathentry exported="true" kind="lib" path="C:/NotesDev/Workspace/lib/activation-1.1.1.jar"/&gt;
      &lt;classpathentry exported="true" kind="lib" path="C:/NotesDev/Workspace/lib/mail.jar"/&gt;
      &lt;classpathentry exported="true" kind="lib" path="C:/NotesDev/Workspace/lib/SatuitCRM_XML_API2.jar"/&gt;
      &lt;classpathentry exported="true" kind="lib" path="C:/NotesDev/Notes/framework/rcp/eclipse/plugins/org.apache.axis_1.4.0.20100729-1241/axispatch.jar"/&gt;
      &lt;classpathentry exported="true" kind="lib" path="C:/NotesDev/Notes/framework/rcp/eclipse/plugins/org.apache.axis_1.4.0.20100729-1241/axis.jar"/&gt;
      &lt;classpathentry exported="true" kind="lib" path="C:/NotesDev/Notes/framework/rcp/eclipse/plugins/org.apache.axis_1.4.0.20100729-1241/jaxrpc.jar"/&gt;
      &lt;classpathentry exported="true" kind="lib" path="C:/NotesDev/Notes/framework/rcp/eclipse/plugins/org.apache.axis_1.4.0.20100729-1241/saaj.jar"/&gt;
      &lt;classpathentry exported="true" kind="lib" path="C:/NotesDev/Notes/framework/rcp/eclipse/plugins/org.apache.axis_1.4.0.20100729-1241/wsdl4j-1.5.1.jar"/&gt;
      &lt;classpathentry kind="src" path="src"/&gt;
      &lt;classpathentry kind="output" path="bin"/&gt;
  &lt;/classpath&gt;
  </code></pre>