NSSM - Unauthorized Service Manager and Marina

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?

+3
source share
1 answer

As a result, in NSSM, I used the following: -Dsolr.solr.home=C:/solr/ -Djetty.home=C:/solr/ -Djetty.logs=C:/solr/logs/ -cp C:/solr/lib/*.jar;C:/solr/start.jar -jar C:/solr/start.jar

+3
source

Source: https://habr.com/ru/post/1793670/


All Articles