Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

run a executable jar in windows server

I am using windows server to run my application. Application is built on spring boot & angular 2. I want to run the executable jar in the windows server.

I have the following queries.

  1. Which is the best practice to run the jar rather than running java -jar abc.jar in cmd.
  2. Best practice to log the application logs in the above configuration.
like image 825
Kiran Kumar Avatar asked Feb 15 '26 10:02

Kiran Kumar


1 Answers

This is what the official spring-boot docs say to do for Windows:

http://docs.spring.io/spring-boot/docs/current/reference/html/deployment-windows.html

Spring Boot application can be started as Windows service using winsw (https://github.com/kohsuke/winsw).

A sample maintained separately to the core of Spring Boot describes step-by-step how you can create a Windows service for your Spring Boot application (https://github.com/snicoll-scratches/spring-boot-daemon).

like image 121
sdoxsee Avatar answered Feb 17 '26 00:02

sdoxsee



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!