|
From: Jeff E. <jem...@fr...> - 2007-07-20 18:11:47
|
Add the java package names available from your class loader
to the Jython package manager, like this:
for (int i=0;i<packageNames.length;++i) {
PySystemState.add_package(packageNames[i]);
}
Charlie Groves wrote:
> Hi Jeff,
>
> Would you mind sending along what you told David to the list? I'm
> curious as to how you fixed this.
>
> Charlie
>
> On 7/20/07, David Huebel <dav...@gm...> wrote:
>> On 7/19/07, Jeff Emanuel <jem...@fr...> wrote:
>> > In my app, I found I have to....
>>
>> Thanks much; it looks like this is working, though I won't be sure
>> until I've finished adding all the necessary calls to add_package.
>> Problem solved, tentatively. I still don't understand why my original
>> code didn't work, but I'm now convinced it is a Java/Eclipse question
>> rather than a Jython one.
>>
>> Just out of curiousity, why is add_package needed in Jython? From a
>> quick glance over the Jython source, it seems to be simply a way of
>> declaring that a Java package exists. I'm guessing that if it were
>> safe to call add_package on nonexistent packages, there would be no
>> need to call it by hand.
>>
>> -David
>>
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by: Microsoft
>> Defy all challenges. Microsoft(R) Visual Studio 2005.
>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>> _______________________________________________
>> Jython-users mailing list
>> Jyt...@li...
>> https://lists.sourceforge.net/lists/listinfo/jython-users
>>
|