I have a Python C Extension DLL with extension pyd, that I would like to load in Java through System.loadLibrary on windows. It seems that there is no way to load a dll with an extension different from *.dll.
Is there any suggested approach to overcome this issue?
Use Case
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
_____ _____ _____
| J | System.loadLibrary | | | P |
| A |-------------------->| P | | Y |
| V | | Y |<-------->| T |
| A | JNI | D | | H |
|___|<------------------->|___| | O |
| N |
|___|