On Aug 6, 2013, at 21:17, Abhishek Gupta <abhi.bansa...@gmail.com> wrote:

> Hi,
> Sorry for asking again, but I got another error.
> 
> After including the all the java libraries I want in jcc. I wrote code for
> Trec Evaluation. While running it I got the error that `there is no
> bechmark module `. So I modified the Makefile to compile and install
> benchmark jar also.
> 
> But, while compiling the compiling pylucene I am getting the following
> error:
> 
> ---------------------------------------------------------------------------------------------------------
> BUILD SUCCESSFUL
> Total time: 1 second
> ICU not installed
> /usr/bin/python -m jcc --shared --jar
> lucene-java-4.3.0/lucene/build/core/lucene-core-4.3.0.jar --jar
> lucene-java-4.3.0/lucene/build/analysis/common/lucene-analyzers-common-4.3.0.jar
> --jar lucene-java-4.3.0/lucene/build/benchmark/lucene-benchmark-4.3.0.jar
> --jar lucene-java-4.3.0/lucene/build/memory/lucene-memory-4.3.0.jar --jar
> lucene-java-4.3.0/lucene/build/highlighter/lucene-highlighter-4.3.0.jar
> --jar build/jar/extensions.jar --jar
> lucene-java-4.3.0/lucene/build/queries/lucene-queries-4.3.0.jar --jar
> lucene-java-4.3.0/lucene/build/queryparser/lucene-queryparser-4.3.0.jar
> --jar lucene-java-4.3.0/lucene/build/sandbox/lucene-sandbox-4.3.0.jar --jar
> lucene-java-4.3.0/lucene/build/grouping/lucene-grouping-4.3.0.jar --jar
> lucene-java-4.3.0/lucene/build/join/lucene-join-4.3.0.jar --jar
> lucene-java-4.3.0/lucene/build/facet/lucene-facet-4.3.0.jar --jar
> lucene-java-4.3.0/lucene/build/suggest/lucene-suggest-4.3.0.jar
> --use_full_names --package java.lang java.lang.System java.lang.Runtime
> --package java.util java.util.Arrays java.util.Collections
> java.util.HashMap java.util.HashSet java.util.TreeSet
> java.lang.IllegalStateException java.lang.IndexOutOfBoundsException
> java.util.NoSuchElementException java.text.SimpleDateFormat
> java.text.DecimalFormat java.text.Collator --package java.util.concurrent
> java.util.concurrent.Executors --package java.util.regex --package
> java.iojava.io.StringReader java.io.InputStreamReader
> java.io.FileInputStream
> java.io.BufferedReader java.io.FileReader java.io.PrintWriter --exclude
> org.apache.lucene.sandbox.queries.regex.JakartaRegexpCapabilities --exclude
> org.apache.regexp.RegexpTunnel --python lucene --mapping
> org.apache.lucene.document.Document
> 'get:(Ljava/lang/String;)Ljava/lang/String;' --mapping java.util.Properties
> 'getProperty:(Ljava/lang/String;)Ljava/lang/String;' --sequence
> java.util.AbstractList 'size:()I' 'get:(I)Ljava/lang/Object;'
> org.apache.lucene.index.IndexWriter:getReader --version 4.3.0 --module
> python/collections.py --module python/ICUNormalizer2Filter.py --module
> python/ICUFoldingFilter.py --module python/ICUTransformFilter.py  --files 8
> --build
> While loading org/apache/lucene/benchmark/byTask/utils/StreamUtils
> Traceback (most recent call last):
>  File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
>    "__main__", fname, loader, pkg_name)
>  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
>    exec code in run_globals
>  File
> "/usr/local/lib/python2.7/dist-packages/JCC-2.16-py2.7-linux-x86_64.egg/jcc/__main__.py",
> line 107, in <module>
>    cpp.jcc(sys.argv)
>  File
> "/usr/local/lib/python2.7/dist-packages/JCC-2.16-py2.7-linux-x86_64.egg/jcc/cpp.py",
> line 583, in jcc
>    cls = findClass(className.replace('.', '/'))
>  File
> "/usr/local/lib/python2.7/dist-packages/JCC-2.16-py2.7-linux-x86_64.egg/jcc/cpp.py",
> line 73, in findClass
>    cls = _findClass(className)
> jcc.cpp.JavaError: java.lang.NoClassDefFoundError:
> org/apache/commons/compress/compressors/CompressorException
> Java stacktrace:
> java.lang.NoClassDefFoundError:
> org/apache/commons/compress/compressors/CompressorException
> at
> org.apache.lucene.benchmark.byTask.utils.StreamUtils.<clinit>(StreamUtils.java:77)
> Caused by: java.lang.ClassNotFoundException:
> org.apache.commons.compress.compressors.CompressorException
> at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
> at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> ... 1 more
> 
> make: *** [compile] Error 1
> ---------------------------------------------------------------------------------------------------------
> 
> I think this error is coming because there is no
> `org.apache.commons.compress.compressors.CompressorException`. I don't know
> how to install it for pylucene. Please Help!

If the additional classes you need require org.apache.commons.compressor etcc
.., you need to endure that they're found on the classpath. This is a java 
error.

Andi..

> 
> Thanks,
> 
> 
> On Tue, Aug 6, 2013 at 10:57 PM, Abhishek Gupta 
> <abhi.bansa...@gmail.com>wrote:
> 
>> Thanks!! Andi :)
>> 
>> 
>> On Tue, Aug 6, 2013 at 5:17 PM, Andi Vajda <va...@apache.org> wrote:
>> 
>>> 
>>> On Aug 6, 2013, at 10:36, Abhishek Gupta <abhi.bansa...@gmail.com> wrote:
>>> 
>>>> Hi,
>>>> I have a problem using TrecTopicsReader which I have already asked on
>>>> #lucene IRC but got no reply till yesterday. I also post it on SO(
>>>> http://stackoverflow.com/questions/18054649/bufferedreader-in-pylucne).
>>>> 
>>>> The problem is completely explained on SO.
>>> 
>>> In the PyLucene Makefile find the jcc invocation and add
>>> java.io.BufferedReader to the long command line (don't forget the ending \
>>> as needed) and rebuild PyLucene.
>>> 
>>> Andi..
>>> 
>>>> 
>>>> Please Help!!
>>>> 
>>>> Thanking You
>>>> Abhishek Gupta,
>>>> 9416106204, 9624799165
>> 
>> 
>> 
>> --
>> Abhishek Gupta,
>> 897876422, 9416106204, 9624799165
> 
> 
> 
> -- 
> Abhishek Gupta,
> 897876422, 9416106204, 9624799165

Reply via email to