• Post Reply Bookmark Topic Watch Topic
  • New Topic

running executable jar as a service  RSS feed

 
gaurav abbi
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
is there a way by which i can run a executable jar as a Windows service.
then i don't need to keep my commnad line window open as long as jar is running.
 
Campbell Ritchie
Marshal
Posts: 56518
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you mean to run the jar by double-clicking? You can usually do that as long as you have the correct file associations set up. Try it.
 
Rob Spoor
Sheriff
Posts: 21131
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Otherwise, use javaw instead of java.
 
Joanne Neal
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But if you did actually want to run your program as a Windows Service take a look at Java Service Wrapper
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!