470,581 Members | 2,433 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,581 developers. It's quick & easy.

jython __init__.py and jar files

I was trying to run an example from the Jython Essentials book but kept getting
an error saying:

java package 'org.jdom.input' has no attribute 'SAXBuilder'

Apparently, it couldn't find the SAXBuilder class, even though I
had set the sys.path to the jar and it seemed to be finding the jar.

Eventually I extracted the files from the jar, but it still wasn't finding
the SAXBuilder class. Then I added __init__.py files to the 'org', 'jdom' and
'input' dirs and wallah!, everything works.

This leads me to a rather odd conclusion:

A real Java jar isn't going to work for Jython because it won't have __init__
files.

Has anyone else run into this? Is my conclusion correct or am I missing
something?
Jul 18 '05 #1
0 1266

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Matt Newcomb | last post: by
6 posts views Thread by Dave Benjamin | last post: by
4 posts views Thread by angel | last post: by
5 posts views Thread by davidmichaelkarr | last post: by
2 posts views Thread by didier.prophete | last post: by
12 posts views Thread by Mark Fink | last post: by
3 posts views Thread by donkeyboy | last post: by
2 posts views Thread by donkeyboy | last post: by
3 posts views Thread by nmin | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.