> createn an Jar-file. this jar file delete my table. > > but SOLR absolute dont want to start this JAR. i put a > run.bat file into my > folder where is my jar saved. this batch-file runs and > delete the table, but > when solr start this batch-file. it doesnt work. i dont > know why. !?!?!? > i test the batch-file in different wayy and it should be > work... help ^^ > > windows xp for test ;-)
I don't know why but, it seems that we need to set dir other than '.' Anyway I got it working in Windows in two ways: 1-) <updateHandler class="solr.DirectUpdateHandler2"> <listener event="postCommit" class="solr.RunExecutableListener"> <str name="exe">java</str> <str name="dir">solr/bin</str> <arr name="args"> <str>-jar</str> <str>junk.jar</str> </arr> <bool name="wait">true</bool> </listener> </updateHandler> 2-) Giving full paths: <updateHandler class="solr.DirectUpdateHandler2"> <listener event="postCommit" class="solr.RunExecutableListener"> <str name="exe">C:\test.bat</str> <str name="dir">C:\</str> <bool name="wait">true</bool> </listener> </updateHandler> It should work this time on windows.