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, 林辉林灯 <lind...@qq.com> 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 be ok > > > ------------------ Original ------------------ > From: "Kiran J"<kiranjuni...@gmail.com>; > Date: Sat, Feb 16, 2013 06:55 AM > To: "solr-user"<solr-user@lucene.apache.org>; > > Subject: Start solr from different folder / .Net code > > > > Hi everyone, > > How can I start Solr from a different folder in Windows ? I tried > > *java -cp "c:\<solr..path>\start.jar" -jar start.jar* > > I get this error: > > *Unable to access jarfile start.jar* > * > * > I need to be able to start Solr from .Net. I am able to do it if I wrap it > in a batch file by first CDing to that folder. Is there any other method to > do this ? > * > * > Any help is much appreciated. > > Thanks