From: Samuele P. <pe...@in...> - 2001-03-08 15:52:01
|
Hi. [D-Man] > | If I don't use jythonc, what other ways do you all find to work well? Can I > | take the .class files built by Jython and use another tool (like > | ClassWrangler on the Mac) to build a jar that I could distribute with > | jython.jar? > > AFAIK jythonc merely takes the .class files it outputs and the .class > files necessary from the jython.jar file and puts it into a new jar > file. (Ok, a simplification since it first generates Java source and > also figures out dependencies) If you want to do that by hand, the > 'jar' part of the JDK should be able to handle it. jar is run very > similarly to tar except it produces a .jar file instead of a .tar > file. > Not that simple, jythonc produces code with information on the java and python packages that will end up in the jar archive, the runtime will use this info to make imports (python import stmt) work, to do the same by hand one need to use sys.add_package("foo.java.pkg") for java packages, and there is no direct support for python stuff assuming the jar is run through java -jar (or something equivalent)... adding support and tools for this kind of deployment (let's call it "poor man freezing") is one of the jython specific goal for jython 2.1 ... regards, Samuele Pedroni |