From: Alan K. <jyt...@xh...> - 2011-06-23 19:34:46
|
[Safoura] > I need to communicate with some device which I have a perfectly working Python > module for. I also have an extensive Java program which needs to talk to the > device and I thought I just call the perfect python module functions from the > already existing Java code. > Therefore I have been looking for a way to call the Python module lib's > functions from Java and found out that Jython is designed to do that. > However, the Python module uses "PyUSB" library which apparently uses ctypes to > communicate with native libraries in Python. Have you considered porting that python USB code to a java USB library? They would probably have similar APIs, and might even use the same underlying native library, if the java lib uses JNA. http://stackoverflow.com/questions/862880/java-usb-library Alan. |