I am trying to use NSSM, the unrelated service manager, to run Jetty, which is part of Solr as a Windows service. Everything works fine by putting Java.exe in my C: \ solr folder and setting up NSSM, pointing to that Java.exe along with the following parameters-Dsolr.solr.home=C:/solr -jar start.jar
You can also run C:\solr\java.exe -Dsolr.solr.home=C:/solr -jar C:/solr/start.jarfrom the command line without installing the service as a test that works fine.
If I leave Java.exe in the System32 folder, everything will work, and I get java.lang.ClassNotFoundException for org.mortbay.xml.XmlConfiguration.
Of course, I can run C:\solr\java -Dsolr.solr.home=C:/solr -jar C:/solr/start.jar, since Java is in my PATH.
If it seems to me that I need an additional pathpath parameter or something, but I don’t know?
source
share