On Wed, 19 Sep 2012, Mohamed Lrhazi wrote:
On Wed, Sep 19, 2012 at 12:40 PM, Andi Vajda <va...@apache.org> wrote:
Did you follow the instructions at the top of the Makefile ?
# Steps to build
# 1. Edit the sections below as documented
# 2. Edit the JARS variable to add optional contrib modules not defaulted
# 3. make
# 4. make install
I set the var section to:
ANT=/opt/ant/bin/ant
JAVA_HOME=/usr/java/jdk1.6.0_29
PYTHON=$(PREFIX_PYTHON)/bin/python
JCC=$(PYTHON) -m jcc --shared
NUM_FILES=4
and have no need for changing JARS variable, I dont think.
make clean
make
results in the same jar error!
The Makefile does not use 'jar' but it uses '--jar' in the JCC invocation
around line 296. I suspect that this line is somehow failing to expand
correctly. If, for example, $(foreach jar,$(JARS),--jar $(jar)) didn't
expand into the expected sequence of --jar FILE --jar FILE --jar FILE, then
this could be the root of the problem.
I've never seen this error myself nor can I reproduce it.
Does the Lucene build part of the build succeed ?
What does 'make print-GENERATE' return ?
It should be a complete and correct command line to invoke jcc on the Lucene
jar files.
Andi..