[pylucene-dev] Re: experiences with --shared on Linux

Andi Vajda vajda at osafoundation.org
Tue Mar 11 19:06:56 PDT 2008


On Tue, 11 Mar 2008, Bill Janssen wrote:

>> On my end, I just got the setClassPath() hack to work in terms of JNI calls.
>
> Brilliant!

Yes, here are the steps:

>>> import lucene, gs
>>> lucene.initVM(lucene.CLASSPATH)
<jcc.JCCEnv object at 0x52280>
>>> gs.initVM('/Users/vajda/osaf/osaf/PyLucene/jcc/gs/')
<jcc.JCCEnv object at 0x6b53650>
>>> lucene.Document()
<Document: Document<>>
>>> gs.GoodStuff()
<GoodStuff: GoodStuff at 3fcaa>

Notice the ending / for the gs CLASSPATH, when specifying a dir it needs to 
end with '/'.

Andi..


More information about the pylucene-dev mailing list