Skip to main content
Zephyr
All documentation pages

Artemis Setup on Windows

Steps to Run

NSSM (Non-Sucking Service Manager) is a tool that allows you to create and manage services on Windows.

  1. Open a command prompt with administrator privileges.

  2. Navigate to the directory where NSSM was extracted (up to win64/win32).

  3. Run the following command to install Artemis application as a service:

    nssm install ZeArtemisService

    A GUI dialog for NSSM will open. Configure the service as follows.

    ZE_Screenshot_NSSM_01.png

  4. Navigate to your Java executable (java.exe), it is typically located in C:\Program Files\Java\jre\bin\java.exe or C:\Program Files\Java\jdk\bin\java.exe, depending on your Java installation.

  5. Set this to the directory containing Artemis .jar file which is ZEPHYR_HOME\artemis\target.

  6. Type this in the “Arguments” field:

    -jar -DzeArtemisConfigPath="C:\Program Files\Zephyr\artemis" ze-artemis-service-<VERSION>.jar

    Here, -DzeArtemisConfigPath defines the location of the artemis.properties. In place of <VERSION> in ze-artemis-service-<VERSION>.jar in the above command, replace with version found in the ZEPHYR_HOME/artemis/target directory.

  7. You can optionally set a description for your service.

  8. Click the “Install Service” button.

    ZE_Screenshot_NSSM_02.png

  • To start the service, open the Services manager (services.msc), find your service (ZeArtemisService), and start it.

  • To stop the service, use the Services manager or run nssm stop ZeArtemisService from the command line.

  • Check the service status in the Services manager to ensure it starts and stops correctly.

  • You can also check logs (usually in the application’s directory) for any issues.

  • Log files are generated in the startup directory given in GUI window.

  • Adding/editing arguments in the application running as service:

    • If the service is already installed using NSSM, it should appear in the list in services.

    • Prompt enter the below command to edit:

      nssm edit ZeArtemisService
  • Click on the “Edit service” button to modify the service settings.

  • If your service is already running, you might need to restart it for the changes to take effect.

Was this page helpful?