From: D-Man <ds...@ri...> - 2001-07-11 16:38:06
|
On Wed, Jul 11, 2001 at 01:40:37PM +0200, Michael Haggerty wrote: | Hello, | | I'm new to Jython and to Java, so I might be trying things that are | just nonsense. But I am having trouble importing and using | multiply-nested java classes using jython. The following illustrates | the problem: | In test.py: | | #! /usr/bin/env jython | | import testlib | import testlib.B | import testlib.B.C import is usually only used with modules or packages. With Jython, however, you can import top-level classes. Instead try this and see if it helps : #!/usr/bin/env jython import testlib print testlib.B print testlib.B.C | Otherwise I've been astounded how easy it is to use Jython and Java | together, and we will probably start using it on a medium-big project | at work. Sounds good! IMO Python (Jython) is much easier to use than Java. -D |