Re: Start solr from different folder / .Net code

2013-02-19 Thread Shawn Heisey
On 2/19/2013 11:55 AM, Kiran J wrote: Thanks guys. I ended up setting the working folder in ProcessStartInfo.WorkingDirectory & it works fine. Batch file though it works, I am not able to kill the Solr process from code if I need to. If you start jetty like this: java -DSTOP.PORT=8079 -DSTO

Re: Start solr from different folder / .Net code

2013-02-19 Thread Kiran J
Thanks guys. I ended up setting the working folder in ProcessStartInfo.WorkingDirectory & it works fine. Batch file though it works, I am not able to kill the Solr process from code if I need to. On Sun, Feb 17, 2013 at 1:12 PM, d_k wrote: > Might as well do: > cd /d H:\downloads\apache-solr-

Re: Start solr from different folder / .Net code

2013-02-17 Thread d_k
Might as well do: cd /d H:\downloads\apache-solr-3.6.0\example or add solr and java to the PATH environment variable On Sat, Feb 16, 2013 at 11:28 AM, 林辉林灯 wrote: > cd H:\downloads\apache-solr-3.6.0\example > H: > java -jar start.jar > > > > save up codes as a bat file,then,start the bat > will

Re: Start solr from different folder / .Net code

2013-02-15 Thread Shawn Heisey
On 2/15/2013 3:55 PM, Kiran J wrote: How can I start Solr from a different folder in Windows ? I tried *java -cp "c:\\start.jar" -jar start.jar* I think you'd want: java -Djetty.home=c:\path -jar c:\path\start.jar Note that the solr.solr.home property will default to .\solr ... in which it