title: Forcing Jetty to load classes in the parent ClassLoader
body: <p>I launch a JVM from native code, then launch Jetty. A webapp then loads a library called JPeripheral. Both the native launcher and JPeripheral depend a native library called Jace. When the webapp tries loading Jace Java throws:</p>
  
  <p><code>java.lang.UnsatisfiedLinkError: Native Library jace.dll already loaded in another classloader</code></p>
  
  <p>Here is the ClassLoader hierarchy inside the webapp:</p>
  
  <p>WebAppClassLoader -> sun.misc.Launcher$AppClassLoader -> sun.misc.Launcher$ExtClassLoader</p>
  
  <p>Jace.dll and Jetty are both loaded by <code>sun.misc.Launcher$AppClassLoader</code> (used by the native launcher).
  JPeripheral is loaded by WebAppClassLoader.</p>
  
  <p>One way to solve this problem would be to load JPeripheral from <code>sun.misc.Launcher$AppClassLoader</code> (so jace.dll gets loaded twice from the same Classloader). How do I do that?</p>