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 -05:00

回到话题: A java question about starting batch file via Runtime.exec.

回到论坛: HOME枫下论坛枫下论坛主坛工作学习IT技术讨论

URL:   
http://www.rolia.net/zh/post.php?f=0&p=60925