Win a copy of Pragmatic AI this week in the Artificial Intelligence forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

Converting Java Application into Windows Service ?  RSS feed

 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have embedded tomcat in my application and we use console to start/stop it.

Now we are moving forward and we want to run my applictaion as Windows service and I am wondering how can I convert my .class into Windows service.

"So question is that how can I convert .class file into windows service"

I googled and I found some applications which could do that but I am looking forward to write my own code. I would really appreciate your help.

Thanks,

Roomi
 
Rancher
Posts: 42975
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As you say, there are any number of little applications that turn a Java program into a Windows service. Why do you want to reinvent the wheel?
 
Shariq Roomi
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually , we are big shop and do not want to spend thousands of dollars on licenses. Any how I found very easy way http://www.techeez.com/windows_tips/service_under_nt.htm and I am able to register any exe as service. Now I have .class file , what would be the most easiet way to convert .class into exe via bat file[or any efficent way]
 
Ulf Dittmer
Rancher
Posts: 42975
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java Service Wrapper is open source, so no license fees are involved, and there are others like it.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!