Dayton Gray on 30 Sep 2004 18:25:03 -0000

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Java/Tomcat/Lucene

On Thu, 30 Sep 2004 13:51:37 -0400, Aaron Crosman wrote
> Over the last few days I have managed to prove to myself that everything
> I thought I knew about using Java in the real world is wrong.  Now 
> I'm confused and I need some guidance here.
> I'm trying to setup Lucene (part of Apache's Jakarta project) to 
> setup a search engine for one of our sites.  So far it's not going 
> well.  Per the suggestion of the Lucene docs I started by setting up 
> Tomcat.  Since I use SuSE YaST made that a fairly painless process,
>  and after a little tweaking of the configuration it seems to be 
> running (although I'm not really sure).  I then tried to follow the 
> Lucene quick start directions, and I'm not getting anywhere.  SuSE 
> seems to have installed java in no less then 5 places 
> (/usr/lib/java/, /usr/lib/j2sdk1.4.2_03/, /usr/lib/SunJava2, 
> /usr/lib/SunJava2-1.4, /usr/lib/SunJava2-1.4.2) this seems bad, but 
> maybe I'm just missing something about this.  What I need to find is 
> the CLASSPATH for java.  Is there a traditional place that this 
> should be set to.  The Tomcat start script is designed to set one, 
> but it's blank by default, so I'm not sure where I should point it.
> Ideas/Thoughts/Suggested documentation are all welcome.  I'm rather
> confused about how this should work ever since I noticed the multiple
> copies of Java kicking around.
> Aaron


What I typically set is the following:

export PATH=/usr/local/java/<java version>/bin:$PATH
export JAVA_HOME=/usr/local/java/<java version>
export CLASSPATH=/usr/local/java/<java version>/lib/tools.jar:/usr/java/<java 

In your case substitute the above paths with your 
version:  /usr/lib/j2sdk1.4.2_03

Alternatively, you could download the latest java from 
and install it wherever you would like (1.4.2_05 is out).


Dayton Gray
dgray &at& omnio () com

Philadelphia Linux Users Group         --
Announcements -
General Discussion  --