From: <bc...@wo...> - 2002-01-03 14:58:03
|
[Severino Fernandez] >I am trying to see if it is possible to convert a running application to >Java. I do not get any problems usin jythonc with the application, it >compiles all the modules building up the application. But when I try tu >run the main class (with java from JDK 1.3), it stops telling me that >the module "warnings" could not be loaded. Jythonc only includes modules it can find in the sources. Unfortunately the jython runtime can import some extra module and jythonc have no to detect that these extra module should be included. The warning modules, the encoding modules and xml.sax.drivers2 modules are common examples of such runtime imports. The workaround is to add a dummy method to your main source file: def _dummy(): # include these modules when compiling with jythonc import warnings The function does not have to be called, it just have to be there. regards, finn |