From: D-Man <ds...@ri...> - 2001-05-18 14:45:02
|
On Thu, May 17, 2001 at 07:26:36PM -0700, Harlan Hile wrote: ... | what i want to do now is bundle it all into a jar file... so, include all | my com/otelnet/.class files, and then include a mymod.py at the root, or a | mymod$py.class at the root, so when I have the jar in the classpath, i can | import mymod ... | is there a way to do this? Use 'jythonc --jar' to build the jar file. Putting .py files into a jar doesn't help at all. You need to have java bytecodes (.class) files in the jar. You also need all the jython internals stuff that your python code depends on in the jar as well (or any jar as long as it is in the CLASSPATH). See jythonc --help for more information and more options. HTH, -D |