title: The bundle XYZ could not resolved. Reason: Missing Constraint: Import-Package: ABC; version="1.0.0" error in headless RCP standalone
body: <p>I'm working on <a href="http://www.developertesting.com/archives/month200508/20050823-HeadlessHelloWorldInEclipse.html" rel="noreferrer">standalone headless RCP</a>. It works without problem when I execute the application and product in eclipse IDE, but when I export and execute it, I got this error in the log file.</p>
  <p><img src="https://i.stack.imgur.com/JgN2m.png" alt="enter image description here" /></p>
  <pre><code>!ENTRY org.eclipse.equinox.ds 4 0 2013-01-16 13:27:59.132
  !MESSAGE FrameworkEvent ERROR
  !STACK 0
  org.osgi.framework.BundleException: The bundle &quot;org.eclipse.equinox.ds_1.4.0.v20120522-1841 [3]&quot; could not be resolved. Reason: Missing Constraint: Import-Package: org.eclipse.equinox.internal.util.event; version=&quot;1.0.0&quot;
      at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolverError(AbstractBundle.java:1332)
      at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolutionFailureException(AbstractBundle.java:1316)
  ...
  
  !ENTRY org.eclipse.equinox.ds 4 0 2013-01-16 13:28:00.901
  !MESSAGE [SCR] Exception while activating instance org.eclipse.e4.ui.css.swt.internal.theme.ThemeEngineManager@6b8d6157 of component org.eclipse.e4.ui.css.swt.theme  
  !STACK 0
  java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Display
      at java.lang.Class.getDeclaredMethods0(Native Method)
      at java.lang.Class.privateGetDeclaredMethods(Class.java:2442)
  </code></pre>
  <p>Referring from <a href="http://www.eclipsezone.com/eclipse/forums/t99010.html" rel="noreferrer">this post</a>, I understand that I've got a newer version of a plug-in without its dependencies, and there is something wrong in the runtime path. However, I'm not sure exactly what might cause this error.</p>
  <p>What might be wrong? Why I have this error only when I execute it as standalone?</p>
  <h2>ADDED</h2>
  <p>I have build.properties file</p>
  <pre><code>output.. = bin/
  bin.includes = META-INF/,\
                 plugin.xml,\
                 .
  source.. = src/
  </code></pre>
  <p>This is MANIFEST.MF file</p>
  <pre><code>Manifest-Version: 1.0
  Bundle-ManifestVersion: 2
  Bundle-Name: Refactorer
  Bundle-SymbolicName: edu.utexas.seal.refactorer;singleton:=true
  Bundle-Version: 1.0.0.qualifier
  Bundle-Activator: edu.utexas.seal.refactorer.Activator
  Bundle-Vendor: PROSSEEK
  Bundle-RequiredExecutionEnvironment: J2SE-1.5
  Bundle-ActivationPolicy: lazy
  Require-Bundle: org.eclipse.core.runtime;bundle-version=&quot;3.8.0&quot;,
   org.eclipse.jdt;bundle-version=&quot;3.8.0&quot;,
   org.eclipse.jdt.core;bundle-version=&quot;3.8.2&quot;,
   org.eclipse.core.resources;bundle-version=&quot;3.8.1&quot;,
   org.eclipse.text;bundle-version=&quot;3.5.200&quot;,
   org.eclipse.jdt.ui;bundle-version=&quot;3.8.1&quot;,
   org.eclipse.jdt.core.manipulation;bundle-version=&quot;1.5.0&quot;,
   org.eclipse.ltk.ui.refactoring;bundle-version=&quot;3.7.0&quot;,
   org.eclipse.jdt.core.manipulation;bundle-version=&quot;1.5.0&quot;,
   org.eclipse.ltk.core.refactoring;bundle-version=&quot;3.6.0&quot;,
   org.eclipse.jface.text;bundle-version=&quot;3.8.1&quot;,
   org.eclipse.core.expressions;bundle-version=&quot;3.4.401&quot;,
   org.eclipse.core.externaltools;bundle-version=&quot;1.0.100&quot;,
   org.eclipse.jface;bundle-version=&quot;3.8.101&quot;,
   edu.utexas.seal.utilities;bundle-version=&quot;1.0.0&quot;,
   org.eclipse.core.filebuffers;bundle-version=&quot;3.5.200&quot;
  Bundle-ClassPath: .
  Export-Package: edu.utexas.seal.refactorer
  </code></pre>
  <p>I have only one item: &quot;.&quot; in Bundle-ClassPath.</p>