Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How Can Java Run A Windows Service? 1

Status
Not open for further replies.

ajbufort

Programmer
Apr 4, 2004
50
US
Hello All,

How can I use the Runtime.getRuntime().exec() command to start/stop a Windows service?

Thanks,

-Tony
 
net start [service]"
"net stop [service]"
With the proper permissions. If you want to run a Java program as an nt service, try JavaService.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top