title: Load Python C Extension DLL using System.loadLibrary
body: <p>I have a <a href="http://docs.python.org/2/extending/windows.html" rel="nofollow">Python C Extension DLL</a> with extension <a href="http://docs.python.org/2/faq/windows.html#is-a-pyd-file-the-same-as-a-dll" rel="nofollow">pyd</a>, that I would like to load in Java through <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/System.html#loadLibrary%28java.lang.String%29" rel="nofollow">System.loadLibrary </a> on windows.
  It seems that there is no way to load a dll with an extension different from *.dll. </p>
  
  <p>Is there any suggested approach to overcome this issue?</p>
  
  <p><strong>Use Case</strong></p>
  
  <p>I am planning to embed Python in Java. I created an extension dll which I was loading in JAVA, using JNI to communicate with the extension dll which in turn interacts with the Python Runtime Environment to execute the Python Statements</p>
  
  <pre><code>_____                     _____          _____
  | J | System.loadLibrary  |   |          | P |
  | A |--------------------&gt;| P |          | Y |
  | V |                     | Y |&lt;--------&gt;| T |
  | A |       JNI           | D |          | H |
  |___|&lt;-------------------&gt;|___|          | O |
                                           | N |
                                           |___|
  </code></pre>