jython 2 java class - help?????

D-Man dsh8290 at rit.edu
Fri Feb 2 19:24:07 CET 2001

(these things are probably better for the jython list)

$ jythonc --all --jar MyEg.jar  MyEg.py

Will create a jar file MyEg.jar that will contain all the .class files
you need (from your .py source and the jython.jar file).

By default jythonc does its work in a directory ./jpywork .  This is
where the .java and .class files are output.  If you specify a jar
file, jythonc will take the .class files it output to ./jpywork and
put them in the jar.


On Fri, Feb 02, 2001 at 05:35:56PM +0000, tiddlerdeja at my-deja.com wrote:
| Can anyone tell me if they have had much success with this?
| I can follow the Graph.py demo and I get this to work. With this demo
| you get a PythonGraph.java file to javac.
| When I attempt this for MyEg.py, I get the MyEg.class files, but I
| don't get the PythonMyEg.java file to compile.
| My exmaple does derive from java.lang.Object, it does work from
| jythjon.bat and has a if __main...... thingy.
| I also want to be able to create a jar that I can deply on another VM
| that does not have jython-2.0 installed.
| Any help appreciated.

More information about the Python-list mailing list