×

Loading...

A java question about starting batch file via Runtime.exec.

zlx (steven)
I met a question below:

I must start a service(jettyHttpserver) or a batch file via java. I use runtime.exec("cmd.exe /c a.bat ") or runtime.exec("cmd.exe /c psservice.exe start jettyHttpserver").But they donot work.In command line,It all work well. Who can tell me the reason?Thanks in advance!
(#60925@0)
2001-5-4 -04:00
This post has been archived. It cannot be replied.
Page address has been copied. To share, click to copy page address.
Share Online by QR Code

Back To Topic: A java question about starting batch file via Runtime.exec.

Back To Forum: HOME枫下论坛枫下论坛主坛工作学习IT技术讨论