From: Tobias I. <th...@gm...> - 2009-02-19 17:24:15
|
If you _are_ running Jython it looks like your problem is a name conflict, both your python module and java package have the same name. Jython will import the python module first in this case (the very same module that you are running), and this module does not define anything with the same name as the java class you are trying to access. On Thu, Feb 19, 2009 at 4:05 PM, Alan Kennedy <jyt...@xh...> wrote: > [Adam] > > I am having trouble getting Jython to execute a very simple custom java > class. > [.. snip ..] > > I am running Python 3.0.1. > > Are you running jython or are you running python 3.0.1? The two are > fundamentally different. > > The only version of python that is at version 3.0.1 is cpython, which > is implemented in C, and cannot be used to run java libraries (well, > not easily anyway). > > Jython is a different implementation of the python language that runs > on the Java Virtual Machine, and is just reaching version 2.5; version > 3.0 of jython is some way in the future. > > If you can clarify which version you are using, it may be possible to > resolve your problem. > > Alan. > > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, > CA > -OSBC tackles the biggest issue in open source: Open Sourcing the > Enterprise > -Strategies to boost innovation and cut costs with open source > participation > -Receive a $600 discount off the registration fee with the source code: > SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users > |