Message5638

Author projectmoon
Recipients fwierzbicki, gschenke, projectmoon
Date 2010-04-05.22:40:27
SpamBayes Score 1.4790329e-09
Marked as misclassified No
Message-id <1270507228.98.0.509465693408.issue1422@psf.upfronthosting.co.za>
In-reply-to
Content
I can confirm this as well on the release version of Jython 2.5.1. I tested it on both Ubuntu 8.04 and Mac OS X Snow Leopard. The results were the same. After searching around on Google for similar problems, I found some workarounds. However, none of them worked. After delving into the Jython source code, I found sort of a ghetto workaround.

By calling PySystemState.add_extdir(String), you can put jars into Jython at runtime, and import statements should work as per the norm. Of course, the trick is getting the directory with your jars into your program. In my case I wound up passing an environment variable. You could conceivably also pass Java a -Dproperty, or hard code it.
History
Date User Action Args
2010-04-05 22:40:28projectmoonsetmessageid: <1270507228.98.0.509465693408.issue1422@psf.upfronthosting.co.za>
2010-04-05 22:40:28projectmoonsetrecipients: + projectmoon, fwierzbicki, gschenke
2010-04-05 22:40:28projectmoonlinkissue1422 messages
2010-04-05 22:40:27projectmooncreate