lucene-pylucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Edwin.Mad...@VerizonWireless.com
Subject RE: make PyLucene failing with QueryParser/Token class not found exception, while the class exists in lucene-core-2.4.1.jar
Date Mon, 15 Jun 2009 19:32:15 GMT
make now complains analysis/PythonTokenizer not found after commenting line for Token class
in Makefile to build Pylucene on cygwin/windows 
#           --exclude org.apache.lucene.queryParser.Token \

analysis/PythonTokenizer.class exists in build/jar/extensions.jar and this jar is included
with --jars option
$ jar -tvf  build/jar/extensions.jar  | grep PythonTokenizer
   545 Mon Jun 15 08:26:26 EDT 2009 org/apache/pylucene/analysis/PythonTokenizer.class

$ make
/usr/bin/python -m jcc --shared --jar lucene-java-2.4.1/build/lucene-core-2.4.1.jar --jar
lucene-java-2.4.1/build/contrib/snowball/lucene-snowball-2.4.1.jar --jar lucene-java-2.4.1/build/contrib/highlighter/lucene-highlighter-2.4.1.jar
--jar lucene-java-2.4.1/build/contrib/analyzers/lucene-analyzers-2.4.1.jar --jar lucene-java-2.4.1/build/contrib/regex/lucene-regex-2.4.1.jar
--jar lucene-java-2.4.1/build/contrib/queries/lucene-queries-2.4.1.jar --jar lucene-java-2.4.1/build/contrib/instantiated/lucene-instantiated-2.4.1.jar
--jar build/jar/extensions.jar --package java.lang java.lang.System java.lang.Runtime --package
java.util java.util.Arrays java.text.SimpleDateFormat --package java.io java.io.StringReader
java.io.InputStreamReader java.io.FileInputStream  --build 
Traceback (most recent call last):
  File "/usr/lib/python2.5/runpy.py", line 95, in run_module
    filename, loader, alter_sys)
  File "/usr/lib/python2.5/runpy.py", line 52, in _run_module_code
    mod_name, mod_fname, mod_loader)
  File "/usr/lib/python2.5/runpy.py", line 32, in _run_code
    exec code in run_globals
  File "/usr/lib/python2.5/site-packages/JCC-2.3-py2.5-cygwin-1.5.25-i686.egg/jcc/__init__.py",
line 27, in <module>
    import jcc.__main__
  File "/usr/lib/python2.5/site-packages/JCC-2.3-py2.5-cygwin-1.5.25-i686.egg/jcc/__main__.py",
line 82, in <module>
    cpp.jcc(sys.argv)
  File "/usr/lib/python2.5/site-packages/JCC-2.3-py2.5-cygwin-1.5.25-i686.egg/jcc/cpp.py",
line 382, in jcc
    cls = findClass(className.replace('.', '/'))
jcc.cpp.JavaError: java.lang.NoClassDefFoundError: org/apache/pylucene/analysis/PythonTokenizer
make: *** [compile] Error 255

tried with export CLASSPATH=build/jar/extensions.jar   # - no impact, same error.
$ echo $CLASSPATH 
build/jar/extensions.jar

cygwin/windows environment:
python 2.5.2-1
Cygwin 1.5.25-15
JCC-2.3
gcc version 4.4.0 (GCC)
GNU ld (GNU Binutils) 2.19.1
jdk1.6.0_13

ideas/suggestions please


The information contained in this message and any attachment may be
proprietary, confidential, and privileged or subject to the work
product doctrine and thus protected from disclosure.  If the reader
of this message is not the intended recipient, or an employee or
agent responsible for delivering this message to the intended
recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited.
If you have received this communication in error, please notify me
immediately by replying to this message and deleting it and all
copies and backups thereof.  Thank you.


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message