From: Ype K. <yk...@xs...> - 2002-06-02 18:18:51
|
Daniel, >I want to import a module in jython that uses a C >language dynamic link library, but I cannot import it, >presumably because it doesn't exist in java. What can >I do to use it (if needed, I could compile it to a >static library). >Thanks, >Daniel Since jython runs in the JVM and the C library does not you'll have to cross the border into the JVM somehow. You have some non exclusive options: - check out the status of the JPE java python extension project, - write a JNI interface for the C libary, - use an existing java library, - reimplement the C library in java, - use existing jython code, - reimplement the C libarary in jython, evt. using the standard java api. If there is any chance that someone ran into your problem before, search for a java library that does (at least some of) the job, and/or ask here for python code usable in jython. Good luck, Ype -- |