title: Java app does not start a thread when called from C (JNI) DLL
body: <p>I've created a java library in which a thread is started.</p>
  
  <p>When testing this library with a normal java-main method and calling the library, the thread in question just starts fine.</p>
  
  <p>But now I want to call this library from a C dll via JNI.</p>
  
  <p>1) So, the C dll calls a library method <code>foo</code> via JNI</p>
  
  <p>2) <code>foo</code> creates a java thread and calls <code>start</code> on it</p>
  
  <p>3) <code>foo</code> returns to the C dll caller.</p>
  
  <p>4) Java thread now starts</p>
  
  <p>The problem is that I get a <code>Future</code> back from the thread and I call <code>get</code> on it.</p>
  
  <p>This <code>get</code> blocks forever when the java code is called from the C dll, but works fine when called from another java app.</p>
  
  <p>All other code is running also fine with JNI.</p>
  
  <p>Any ideas how this can happen?</p>
  
  <p>Is the dll or JNI somehow preventing java thread creation?</p>