title: Run/Debug OSGi application in Eclipse
body: <p>Our app has migrated to OSGi, but I have trouble starting/debugging it in Eclipse. What is the process: is OSGi application developer expected to set up Equinox environment, install hundreds of bundles (jar=bundle?), and start from console? In other words, is launching "hot-plug-gifted" application different from "modular-challenged" one? </p>
  
  <p>Secondary, more concrete question. There is a bootstrap bundle which is supposed to take care of everything, but after loading bunch of classes it slows down and almost hangs at:</p>
  
  <pre><code>...
  ...
  ...
  Flat profile of 0.22 secs (16 total ticks): main
  
    Interpreted + native   Method                        
   16.7%     1  +     0    java.awt.Toolkit.addAWTEventLi[Loaded java.awt.SentEvent from C:\Program Files\Java\jdk1.7.0_04\jre\lib\rt.jar]
  stener
   16.7%     1  +     0    jav[Loaded java.awt.DefaultKeyboardFocusManager$DefaultKeyboardFocusManagerSentEvent from C:\Program Files\Java\jdk1.7.0_04\jre\lib\rt.jar]
  a.util.regex.Pattern.compile
   16.7%     1  +     0    sun.util.logging.PlatformLogger.&lt;init&gt;
   50.0%     3  +     0    Total interpreted
  
    Thread-local ticks:
   62.5%    10             Blocked (of total)
   50.0%     3             Class loader
  
  ...
  ...
  ...
  [Loaded sun.reflect.Label$PatchInfo from C:\Program Files\Java\jdk1.7.0_04\jre\lib\rt.jar]
  [Loaded sun.reflect.MethodAccessorGenerator$1 from C:\Program Files\Java\jdk1.7.0_04\jre\lib\rt.jar]
  [Loaded sun.reflect.ClassDefiner from C:\Program Files\Java\jdk1.7.0_04\jre\lib\rt.jar]
  [Loaded sun.reflect.ClassDefiner$1 from C:\Program Files\Java\jdk1.7.0_04\jre\lib\rt.jar]
  [Loaded sun.reflect.GeneratedMethodAccessor1 from __JVM_DefineClass__]
  [Dynamic-linking native method sun.java2d.DefaultDisposerRecord.invokeNativeDispose ... JNI]
  [Dynamic-linking native method java.lang.ref.Finalizer.invokeFinalizeMethod ... JNI]
  </code></pre>
  
  <p>Edit: progressed a little since question posting</p>
  
  <pre><code>[Loaded sun.reflect.GeneratedMethodAccessor1 from __JVM_DefineClass__]
  [Dynamic-linking native method sun.java2d.DefaultDisposerRecord.invokeNativeDispose ... JNI]
  [Dynamic-linking native method java.lang.ref.Finalizer.invokeFinalizeMethod ... JNI]
  --- new stuff --- 
  [Loaded sun.awt.windows.WComponentPeer$2 from C:\Program Files\Java\jdk1.7.0_04\jre\lib\rt.jar]
  [Dynamic-linking native method sun.awt.windows.WInputMethod.disableNativeIME ... JNI]
  </code></pre>
  
  <p>Thus it is not a deadlock, what might make it so excrutiatingly slow?</p>