lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley" <ysee...@gmail.com>
Subject Re: solrconfig environment variable
Date Tue, 23 May 2006 22:00:37 GMT
On 5/23/06, maustin75 <maustin75@gmail.com> wrote:
> does the System.getProperty function read from the environment variables

Unfortunately not... Java doesn't have a way to read environment
variables AFAIK (omitted in the name of portability).
The easiest way to set a system property is on the command line when
starting the JVM.

Example:
java -Dsolr.solr.home=/myhome/solr -jar start.jar

-Yonik

Mime
View raw message