I don't seem to have the same trouble on exactly the same platform/java version.  Are you using an IDE?

On Mon, Apr 23, 2012 at 7:10 PM, Angel Yanguas-Gil <angel.yanguas@gmail.com> wrote:

I am sure someone else has also come across the same issue, but in my
case when running a jython script from java through PythonInterpreter
java/jython is not able to find swing when: from javax.swing import *.
However, if I use from javax.swing import JPanel, everything is ok.

I am running jython 2.5.2, Java HotSpot(TM) 64-Bit Server VM (Apple
Inc.) on java1.6.0_31

Does anyone knows why? Is this the expected behavior?



Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
Jython-users mailing list