I forgot to add some info: I'm using WinXP and Jython2.2.1.
On Wed, Oct 8, 2008 at 4:48 AM, <astigmatik@...> wrote:
> I have a test.py, and these are the lines:
> from java.awt import *
> from javax.swing import *
> print "This is running"
> f = JFrame("Test", defaultCloseOperation=JFrame.EXIT_ON_CLOSE)
> I pack the test.py into a standalone jython.jar (in the Lib/ folder)
> -- let's call it jythonsa.jar.
> When I typed in the command line:
> java -jar jythonsa.jar test.py
> The "This is running" is printed (which is fine), but I get a NameError: JFrame
> 1. Why is that so? And how do I fix it?
> 2. If I have a big module (i.e. a directory with lots of .py files and
> subdirs in it), how do I run the module?