You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@lucene.apache.org by David Alyea <da...@gmail.com> on 2012/11/10 18:49:09 UTC
Lucene and Solr installation problems
I can't seem to get lucene or solr running on my server.
I am trying for 3.6.1 since my server has java 1.5. Here is
info about my server:
<Q>$ cat /etc/*rel*
CentOS release 6.3 (Final)
CentOS release 6.3 (Final)
CentOS release 6.3 (Final)
cpe:/o:centos:linux:6:GA
<Q>$ java -version
java version "1.5.0"
gij (GNU libgcj) version 4.4.6 20120305 (Red Hat 4.4.6-4)
Here is CLASSPATH:
<Q>$ env | grep CLASSPATH
CLASSPATH=/home/site/lucene-3.6.1/lucene-core-3.6.1.jar:/home/site/lucene-3.6.1/contrib/demo/lucene-demo-3.6.1.jar
The files:
<Q>$ ls -l /home/site/lucene-3.6.1/lucene-core-3.6.1.jar
-rw-r--r-- 1 site site 1537988 Jul 17 12:36
/home/site/lucene-3.6.1/lucene-core-3.6.1.jar
<Q>$ ls -l /home/site/lucene-3.6.1/contrib/demo/lucene-demo-3.6.1.jar
-rw-r--r-- 1 site site 16854 Jul 17 12:38
/home/site/lucene-3.6.1/contrib/demo/lucene-demo-3.6.1.jar
Working in:
<Q>$ pwd
/home/site/lucene-3.6.1
When I try the tutorial demo, I get:
<Q>$ java org.apache.lucene.demo.IndexFiles -docs contrib/demo/src
Indexing to directory 'index'...
Exception in thread "main" java.lang.ExceptionInInitializerError
at java.lang.Class.initializeClass(libgcj.so.10)
at
org.apache.lucene.index.IndexWriterConfig.<init>(IndexWriterConfig.java:151)
at org.apache.lucene.demo.IndexFiles.main(IndexFiles.java:89)
Caused by: java.lang.NullPointerException
at java.lang.ref.Reference.<init>(libgcj.so.10)
at java.lang.ref.WeakReference.<init>(libgcj.so.10)
at
org.apache.lucene.util.WeakIdentityMap$IdentityWeakReference.<init>(WeakIdentityMap.java:180)
at org.apache.lucene.util.WeakIdentityMap.get(WeakIdentityMap.java:80)
at
org.apache.lucene.util.VirtualMethod.getImplementationDistance(VirtualMethod.java:95)
at
org.apache.lucene.util.VirtualMethod.compareImplementationDistance(VirtualMethod.java:146)
at org.apache.lucene.search.Similarity.<init>(Similarity.java:538)
at
org.apache.lucene.search.DefaultSimilarity.<init>(DefaultSimilarity.java:23)
at org.apache.lucene.search.Similarity.<clinit>(Similarity.java:544)
at java.lang.Class.initializeClass(libgcj.so.10)
...2 more
Any ideas why lucene won't run on my server?
RE: Lucene and Solr installation problems
Posted by Uwe Schindler <uw...@thetaphi.de>.
Lucene / Solr does definitely not work with any GCJ or other CLASSPATH-based JVM.
-----
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: uwe@thetaphi.de
> -----Original Message-----
> From: Robert Muir [mailto:rcmuir@gmail.com]
> Sent: Saturday, November 10, 2012 7:11 PM
> To: general@lucene.apache.org
> Subject: Re: Lucene and Solr installation problems
>
> On Sat, Nov 10, 2012 at 12:49 PM, David Alyea <da...@gmail.com> wrote:
> >
> > Any ideas why lucene won't run on my server?
>
> <Q>$ java -version
> java version "1.5.0"
> gij (GNU libgcj) version 4.4.6 20120305 (Red Hat 4.4.6-4)
>
> I don't think Lucene will work with GCJ... you will need a fully functional JVM.
Re: Lucene and Solr installation problems
Posted by Robert Muir <rc...@gmail.com>.
On Sat, Nov 10, 2012 at 12:49 PM, David Alyea <da...@gmail.com> wrote:
>
> Any ideas why lucene won't run on my server?
<Q>$ java -version
java version "1.5.0"
gij (GNU libgcj) version 4.4.6 20120305 (Red Hat 4.4.6-4)
I don't think Lucene will work with GCJ... you will need a fully functional JVM.