×

Loading...

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

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!
Report