• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

running jar as a windows service , using " sc create "

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All ,

Im trying to run jar as a windows service .
I tried sc create "servicename" binPath="path of jar" type=own start=boot
I could able to create service while trying to start error 139

Thank you for suggestions
 
Ranch Hand
Posts: 305
Tomcat Server Notepad Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

satyanarayana chivukula wrote:Hi All ,

Im trying to run jar as a windows service .
I tried sc create "servicename" binPath="path of jar" type=own start=boot
I could able to create service while trying to start error 139

Thank you for suggestions



jar file execution needs jre.It should be loaded in windows before you execute jar.
 
satyanarayana chivukula
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Even though I mentioned java.exe in binPath for .jar execution.
I could able to install service successfully but unable to start.

I looked over net and found out that java native packages has to be used to have windows service.
And java service wrapper.

Any suggestions
 
I knew I would regret that burrito. But this tiny ad has never caused regrets:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic