Roman Kagan
Roman Kagan

Reputation: 10626

How to run SWING applications written in Jython?

I've installed Jython and trying to run swing application that's bundled in installation package. I set the JYTHON_PATH and PATH to bin subdirectory and I run: "jython Console.py" I see the console for a split second and it disappears. Same behavior with other examples. What am I missing?

I have MacOSX 10.6 and Jython 2.5

Upvotes: 1

Views: 354

Answers (1)

Favonius
Favonius

Reputation: 13974

There seems to be a bug when you simply fire jython Console.py. The behavior is same on my Vista machine with Jython 2.5.

Though when you execute it like this jython -i Console.py it works fine. I have tested it on my Vista machine.

Though command line help says

-i       : inspect interactively after running script and force prompts, 
           even if stdin does not appear to be a terminal

Upvotes: 3

Related Questions