pylucene compilation error - reserved keywords

2011-11-13 Thread Jiang Fung Wong
Dear All, I tried to compile pylucene on ArchLinux. JCC compilation was fine. When I tried to make. I got this error: In file included from build/_lucene/org/apace/lucene/util/mutable/MutableValueFloat.h:4:0, from build/_lucene/__wrap01__.cpp:17795: build/_lucene/org/apace/lucene/util/mutable/Mut

Re: pylucene compilation error - reserved keywords

2011-11-13 Thread Andi Vajda
On Nov 13, 2011, at 2:10, Jiang Fung Wong wrote: > I tried to compile pylucene on ArchLinux. JCC compilation was fine. > When I tried to make. I got this error: > > In file included from > build/_lucene/org/apace/lucene/util/mutable/MutableValueFloat.h:4:0, > from build/_lucene/__wrap01__.cpp:1

set PYTHONPATH programatically from Java?

2011-11-13 Thread Roman Chyla
Hi, I am using JCC to run Python inside Java. For unittest, I'd like to set PYTHONPATH environment variable programmatically. I can change env vars inside Java (using http://stackoverflow.com/questions/318239/how-do-i-set-environment-variables-from-java) and System.getenv("PYTHONPATH") shows corre

Re: pylucene compilation error - reserved keywords

2011-11-13 Thread Jiang Fung Wong
Thanks for the reply. > What version of Lucene are you using ? I checked out from pylucene svn trunk, it's 4.0 Other info: latest ArchLinux 3.1.0-4-ARCH openjdk6 6.b22_1.10.4-1 gcc: 4.6.2 python: 2.6.7 jcc 2.11 ant 1.8.2-2 NO_SHARED Shall I use lucene 3.x ? > Yes, add mutable to the reserved w

Re: pylucene compilation error - reserved keywords

2011-11-13 Thread Andi Vajda
On Mon, 14 Nov 2011, Jiang Fung Wong wrote: Thanks for the reply. What version of Lucene are you using ? I checked out from pylucene svn trunk, it's 4.0 That's a bit bleeding edge due to the rapidly changing nature of Lucene's trunk 4.0. You should really use PyLucene's 3.x branch or 3.4

Re: set PYTHONPATH programatically from Java?

2011-11-13 Thread Andi Vajda
On Sun, 13 Nov 2011, Roman Chyla wrote: I am using JCC to run Python inside Java. For unittest, I'd like to set PYTHONPATH environment variable programmatically. I can change env vars inside Java (using http://stackoverflow.com/questions/318239/how-do-i-set-environment-variables-from-java) and