After you make your .py file you may want to compile it into a JAR file for distribution. The Jython distribution from jython.org contains a compiler called jythonc that can be used. Here are some steps you can take to create a JAR file of your code:
@echo off set JYTHON_PATH=. set CLASSPATH=. %JYTHON_PATH%\jre\bin\java.exe -mx256m "-Dpython.home=%JYTHON_PATH%\\" "-Dpython .path=%JYTHON_PATH%.\\" -cp "%JYTHON_PATH%\\jython.jar;%JYTHON_PATH%\\visad.jar; %JYTHON_PATH%\\;." org.python.util.jython "%JYTHON_PATH%\Tools\jythonc\jythonc.p y " --compiler javac %1 %2 %3 %4 %5 %6 %7 %8 %9(Note the "--compiler javac" option -- this assumes that the Java compiler to use (javac) is in your PATH.)
comp --core --jar mything.jar mything.pyThe documentation on jythonc can be found here and has all the details of the options.
java -cp mything.jar;visad.jar mything