You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Thomas Lepkowski <th...@gmail.com> on 2005/08/29 17:42:54 UTC
Index files in jar
Hello,
I have a set of index files that I'd like to distribute with my Java
application. The only way this seems practical is to place the index files
in a jar file. I tried this, but the search choked when I told IndexSearcher
the index path inside the jar file ( and placed the jar file path in the
CLASSPATH ).
Any ideas on wrapping my index files inside a jar file?
Thanks in advance for any help.
-Tom
Re: Index files in jar
Posted by Dan Funk <fu...@BATTELLE.ORG>.
Why not build a self-extracting jar file and extract the contents of the
index to a temp directory?
http://www.javaworld.com/javaworld/javatips/jw-javatip120.html
Thomas Lepkowski wrote:
>Hello,
>
>I have a set of index files that I'd like to distribute with my Java
>application. The only way this seems practical is to place the index files
>in a jar file. I tried this, but the search choked when I told IndexSearcher
>the index path inside the jar file ( and placed the jar file path in the
>CLASSPATH ).
>
>Any ideas on wrapping my index files inside a jar file?
>
>Thanks in advance for any help.
>
>-Tom
>
>
>
--
Dan Funk
Software Engineer
Information Technology Solutions
Battelle Charlottesville Operations
1000 Research Park Boulevard, Suite 105
Charlottesville, Virginia 22911
434.984.0951 x244
434.984.0947 (fax)
FunkD@Battelle.org
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org